Home
last modified time | relevance | path

Searched refs:AstNode (Results 1 – 6 of 6) sorted by relevance

/system/tools/aidl/
Dast_cpp.h35 class AstNode {
37 AstNode() = default;
38 virtual ~AstNode() = default;
43 class Declaration : public AstNode {
113 class ArgList : public AstNode {
118 explicit ArgList(std::vector<std::unique_ptr<AstNode>> arg_list);
125 std::vector<std::unique_ptr<AstNode>> arguments_;
211 void AddStatement(std::unique_ptr<AstNode> statement);
212 void AddStatement(AstNode* statement); // Takes ownership
219 std::vector<std::unique_ptr<AstNode>> statements_;
[all …]
Dast_cpp_unittest.cpp95 void CompareGeneratedCode(const AstNode& node, in CompareGeneratedCode()
161 std::vector<unique_ptr<AstNode>> args; in TEST_F()
180 block.AddStatement(unique_ptr<AstNode>(new Statement("foo"))); in TEST_F()
181 block.AddStatement(unique_ptr<AstNode>(new Statement("bar"))); in TEST_F()
228 case2->AddStatement(unique_ptr<AstNode>{new Statement{"baz"}}); in TEST_F()
230 case1->AddStatement(unique_ptr<AstNode>{new Statement{"foo"}}); in TEST_F()
231 case1->AddStatement(unique_ptr<AstNode>{new Statement{"bar"}}); in TEST_F()
Dast_cpp.cpp32 std::string AstNode::ToString() { in ToString()
131 ArgList::ArgList(std::vector<std::unique_ptr<AstNode>> arg_list) in ArgList()
229 void StatementBlock::AddStatement(unique_ptr<AstNode> statement) { in AddStatement()
233 void StatementBlock::AddStatement(AstNode* statement) { in AddStatement()
240 statements_.push_back(unique_ptr<AstNode>(new Statement(expression_str))); in AddLiteral()
242 statements_.push_back(unique_ptr<AstNode>( in AddLiteral()
342 Assignment::Assignment(const std::string& left, AstNode* right) in Assignment()
366 IfStatement::IfStatement(AstNode* expression, bool invert_expression) in IfStatement()
382 Statement::Statement(unique_ptr<AstNode> expression) in Statement()
385 Statement::Statement(AstNode* expression) : expression_(expression) {} in Statement()
[all …]
Dast_java.h56 struct AstNode { struct
57 AstNode() = default;
58 virtual ~AstNode() = default;
63 struct ClassElement : public AstNode {
68 struct Expression : public AstNode {
128 struct Statement : public AstNode {
277 struct Case : public AstNode {
340 class Document : public AstNode {
Dgenerate_cpp.cpp72 unique_ptr<AstNode> BreakOnStatusNotOk() { in BreakOnStatusNotOk()
77 return unique_ptr<AstNode>(ret); in BreakOnStatusNotOk()
80 unique_ptr<AstNode> GotoErrorOnBadStatus() { in GotoErrorOnBadStatus()
85 return unique_ptr<AstNode>(ret); in GotoErrorOnBadStatus()
88 unique_ptr<AstNode> ReturnOnStatusNotOk() { in ReturnOnStatusNotOk()
92 return unique_ptr<AstNode>(ret); in ReturnOnStatusNotOk()
552 vector<unique_ptr<AstNode>> status_args; in HandleServerTransaction()
Dast_java.cpp34 std::string AstNode::ToString() { in ToString()