Home
last modified time | relevance | path

Searched refs:Expression (Results 1 – 19 of 19) sorted by relevance

/system/tools/hidl/c2hal/
DExpression.h30 struct Expression { struct
31 Expression() {} in Expression() argument
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 …]
DExpression.cpp32 Expression::Type Expression::integralType(const std::string& integer) { in integralType()
54 Expression::Type Expression::coalesceTypes(Type lhs, Type rhs) { in coalesceTypes()
82 struct ParenthesizedExpression : Expression {
83 ParenthesizedExpression(Expression* inner) in ParenthesizedExpression()
97 Expression* mInner;
102 struct AtomExpression : Expression {
133 struct UnaryExpression : Expression {
134 UnaryExpression(std::string op, Expression* rhs) in UnaryExpression()
150 Expression* mRhs;
155 struct BinaryExpression : Expression {
[all …]
DDefine.h39 Expression::Type getExpressionType() const;
40 Expression *getExpression() const;
41 void setExpression(Expression* expression);
46 Expression::Type mExpressionType;
47 Expression* mExpression = nullptr;
Dc2hal_y.yy30 #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 …]
DEnumVarDeclaration.h28 struct Expression;
31 EnumVarDeclaration(const std::string &name, Expression *expression);
38 Expression *getExpression() const;
44 Expression *mExpression = nullptr;
DDefine.cpp33 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()
DAST.h54 Expression *getExpression() const;
55 void setExpression(Expression *expression);
72 Expression* mExpression = nullptr;
91 void isolateConstants(Expression::Type ofType);
DAST.cpp103 Expression *AST::getExpression() const { in getExpression()
106 void AST::setExpression(Expression *expression) { in setExpression()
131 isolateConstants(Expression::Type::U64); in processContents()
132 isolateConstants(Expression::Type::S64); in processContents()
133 isolateConstants(Expression::Type::U32); in processContents()
134 isolateConstants(Expression::Type::S32); in processContents()
199 void AST::isolateConstants(Expression::Type ofType) { in isolateConstants()
226 "Const" + Expression::getTypeDescription(ofType), in isolateConstants()
229 constEnum->setEnumTypeName(Expression::getTypeName(ofType)); in isolateConstants()
DEnumVarDeclaration.cpp24 EnumVarDeclaration::EnumVarDeclaration(const std::string &name, Expression *expression) in EnumVarDeclaration()
39 Expression *EnumVarDeclaration::getExpression() const { in getExpression()
DType.h86 void setArrays(std::vector<Expression *> *arrays);
110 std::vector<Expression*> *mArrays = nullptr;
DAndroid.bp26 "Expression.cpp",
DType.cpp43 void Type::setArrays(std::vector<Expression*> *arrays) { in setArrays()
Dc2hal_l.ll42 #include "Expression.h"
/system/tools/aidl/
Dast_java.h68 struct Expression : public AstNode { struct
69 virtual ~Expression() = default;
72 struct LiteralExpression : public Expression {
81 struct StringLiteralExpression : public Expression {
89 struct Variable : public Expression {
103 struct FieldVariable : public Expression {
104 std::variant<Expression*, std::string> receiver;
107 FieldVariable(Expression* object, const std::string& name);
150 void Add(Expression* expression);
154 Expression* expression;
[all …]
Dast_java.cpp68 void WriteArgumentList(CodeWriter* to, const vector<Expression*>& arguments) { in WriteArgumentList()
122 FieldVariable::FieldVariable(Expression* o, const string& n) : receiver(o), name(n) {} in FieldVariable()
128 overloaded{[&](Expression* e) { e->Write(to); }, in Write()
155 void StatementBlock::Add(Expression* expression) { in Add()
159 ExpressionStatement::ExpressionStatement(Expression* e) : expression(e) {} in ExpressionStatement()
166 Assignment::Assignment(Variable* l, Expression* r) : lvalue(l), rvalue(r) {} in Assignment()
168 Assignment::Assignment(Variable* l, Expression* r, string c) : lvalue(l), rvalue(r), cast(c) {} in Assignment()
188 MethodCall::MethodCall(Expression* o, const string& n) : receiver(o), name(n) {} in MethodCall()
192 MethodCall::MethodCall(Expression* o, const string& n, int argc = 0, ...) : receiver(o), name(n) { in MethodCall()
209 Expression* expression = (Expression*)va_arg(args, void*); in init()
[all …]
Dtype_java.h56 Expression* BuildWriteToParcelFlags(int flags) const;
335 extern Expression* NULL_VALUE;
336 extern Expression* THIS_VALUE;
337 extern Expression* SUPER_VALUE;
338 extern Expression* TRUE_VALUE;
339 extern Expression* FALSE_VALUE;
Dtype_java.cpp33 Expression* NULL_VALUE;
34 Expression* THIS_VALUE;
35 Expression* SUPER_VALUE;
36 Expression* TRUE_VALUE;
37 Expression* FALSE_VALUE;
53 Expression* Type::BuildWriteToParcelFlags(int flags) const { in BuildWriteToParcelFlags()
Dgenerate_java_binder.cpp95 Expression* get_transact_descriptor(const JavaTypeNamespace* types,
227 Expression* StubClass::get_transact_descriptor(const JavaTypeNamespace* types, in get_transact_descriptor()
/system/tools/hidl/test/hidl_test/
Dstatic_test.cpp259 struct Expression : public IExpression { struct