Searched refs:Expression (Results 1 – 17 of 17) sorted by relevance
/system/tools/hidl/c2hal/ |
D | Expression.cpp | 33 Expression::Type Expression::integralType(std::string integer) { in integralType() 56 Expression::Type Expression::coalesceTypes(Type lhs, Type rhs) { in coalesceTypes() 84 struct ParenthesizedExpression : Expression { 85 ParenthesizedExpression(Expression* inner) in ParenthesizedExpression() 99 Expression* mInner; 104 struct AtomExpression : Expression { 135 struct UnaryExpression : Expression { 136 UnaryExpression(std::string op, Expression* rhs) in UnaryExpression() 152 Expression* mRhs; 157 struct BinaryExpression : Expression { [all …]
|
D | Expression.h | 30 struct Expression { struct 31 Expression() {} in Expression() function 32 virtual ~Expression() {} in ~Expression() argument 69 static Expression *parenthesize(Expression *inner); argument 70 static Expression *atom(Type type, const std::string &value, bool isId = false); 71 static Expression *unary(std::string op, Expression *rhs); 72 static Expression *binary(Expression *lhs, std::string op, Expression *rhs); 73 static Expression *ternary(Expression *lhs, Expression *mhs, Expression *rhs); 74 static Expression *arraySubscript(std::string id, Expression *subscript); 75 static Expression *functionCall(std::string id, std::vector<Expression *> *args); [all …]
|
D | c2hal_y.yy | 30 #include "Expression.h" 166 android::Expression *expression; 167 std::vector<android::Expression *> *expressions; 470 $$ = Expression::atom(Expression::Type::UNKNOWN, $1, true /* isId*/ ); 472 | VALUE { $$ = Expression::atom(Expression::Type::UNKNOWN, $1); } 473 | INTEGRAL_VALUE { $$ = Expression::atom(Expression::integralType($1), $1); } 474 | '(' expr ')' { $$ = Expression::parenthesize($2); } 476 $$ = Expression::arraySubscript($1, $3); 479 $$ = Expression::functionCall($1, $3); 481 | expr '?' expr ':' expr { $$ = Expression::ternary($1, $3, $5); } [all …]
|
D | Define.h | 39 Expression::Type getExpressionType() const; 40 Expression *getExpression() const; 41 void setExpression(Expression* expression); 46 Expression::Type mExpressionType; 47 Expression* mExpression = NULL;
|
D | EnumVarDeclaration.h | 28 struct Expression; 31 EnumVarDeclaration(const std::string &name, Expression *expression); 38 Expression *getExpression() const; 44 Expression *mExpression = NULL;
|
D | Define.cpp | 33 Expression::Type Define::getExpressionType() const { in getExpressionType() 36 Expression *Define::getExpression() const { in getExpression() 39 void Define::setExpression(Expression* expression) { in setExpression() 51 mExpressionType = Expression::Type::UNKNOWN; in processContents()
|
D | AST.h | 54 Expression *getExpression() const; 55 void setExpression(Expression *expression); 72 Expression* mExpression = NULL; 91 void isolateConstants(Expression::Type ofType);
|
D | AST.cpp | 104 Expression *AST::getExpression() const { in getExpression() 107 void AST::setExpression(Expression *expression) { in setExpression() 132 isolateConstants(Expression::Type::U64); in processContents() 133 isolateConstants(Expression::Type::S64); in processContents() 134 isolateConstants(Expression::Type::U32); in processContents() 135 isolateConstants(Expression::Type::S32); in processContents() 200 void AST::isolateConstants(Expression::Type ofType) { in isolateConstants() 227 "Const" + Expression::getTypeDescription(ofType), in isolateConstants() 230 constEnum->setEnumTypeName(Expression::getTypeName(ofType)); in isolateConstants()
|
D | EnumVarDeclaration.cpp | 24 EnumVarDeclaration::EnumVarDeclaration(const std::string &name, Expression *expression) in EnumVarDeclaration() 39 Expression *EnumVarDeclaration::getExpression() const { in getExpression()
|
D | Type.h | 86 void setArrays(std::vector<Expression *> *arrays); 110 std::vector<Expression*> *mArrays = NULL;
|
D | Android.bp | 30 "Expression.cpp",
|
D | Type.cpp | 43 void Type::setArrays(std::vector<Expression*> *arrays) { in setArrays()
|
D | c2hal_l.ll | 42 #include "Expression.h"
|
/system/tools/aidl/ |
D | ast_java.h | 64 struct Expression { struct 65 virtual ~Expression() = default; 69 struct LiteralExpression : public Expression { 78 struct StringLiteralExpression : public Expression { 86 struct Variable : public Expression { 100 struct FieldVariable : public Expression { 101 Expression* object; 105 FieldVariable(Expression* object, const std::string& name); 138 void Add(Expression* expression); 142 Expression* expression; [all …]
|
D | ast_java.cpp | 57 void WriteArgumentList(CodeWriter* to, const vector<Expression*>& arguments) { in WriteArgumentList() 111 FieldVariable::FieldVariable(Expression* o, const string& n) in FieldVariable() 139 void StatementBlock::Add(Expression* expression) { in Add() 143 ExpressionStatement::ExpressionStatement(Expression* e) : expression(e) {} in ExpressionStatement() 150 Assignment::Assignment(Variable* l, Expression* r) in Assignment() 153 Assignment::Assignment(Variable* l, Expression* r, const Type* c) in Assignment() 174 MethodCall::MethodCall(Expression* o, const string& n) : obj(o), name(n) {} in MethodCall() 178 MethodCall::MethodCall(Expression* o, const string& n, int argc = 0, ...) in MethodCall() 196 Expression* expression = (Expression*)va_arg(args, void*); in init() 213 Comparison::Comparison(Expression* l, const string& o, Expression* r) in Comparison() [all …]
|
D | type_java.h | 62 Expression* BuildWriteToParcelFlags(int flags) const; 488 extern Expression* NULL_VALUE; 489 extern Expression* THIS_VALUE; 490 extern Expression* SUPER_VALUE; 491 extern Expression* TRUE_VALUE; 492 extern Expression* FALSE_VALUE;
|
D | type_java.cpp | 35 Expression* NULL_VALUE; 36 Expression* THIS_VALUE; 37 Expression* SUPER_VALUE; 38 Expression* TRUE_VALUE; 39 Expression* FALSE_VALUE; 85 Expression* Type::BuildWriteToParcelFlags(int flags) const { in BuildWriteToParcelFlags()
|