Searched refs:AstNode (Results 1 – 6 of 6) sorted by relevance
33 class AstNode {35 AstNode() = default;36 virtual ~AstNode() = default;39 AstNode(const AstNode&) = delete;40 AstNode(AstNode&&) = delete;41 AstNode& operator=(const AstNode&) = delete;42 AstNode& operator=(AstNode&&) = delete;48 class Declaration : public AstNode {109 class ArgList : public AstNode {114 explicit ArgList(std::vector<std::unique_ptr<AstNode>> arg_list);[all …]
88 void CompareGeneratedCode(const AstNode& node, in CompareGeneratedCode()177 std::vector<unique_ptr<AstNode>> args; in TEST_F()196 block.AddStatement(unique_ptr<AstNode>(new Statement("foo"))); in TEST_F()197 block.AddStatement(unique_ptr<AstNode>(new Statement("bar"))); in TEST_F()244 case2->AddStatement(unique_ptr<AstNode>{new Statement{"baz"}}); in TEST_F()246 case1->AddStatement(unique_ptr<AstNode>{new Statement{"foo"}}); in TEST_F()247 case1->AddStatement(unique_ptr<AstNode>{new Statement{"bar"}}); in TEST_F()
32 std::string AstNode::ToString() { in ToString()133 ArgList::ArgList(std::vector<std::unique_ptr<AstNode>> arg_list) in ArgList()231 void StatementBlock::AddStatement(unique_ptr<AstNode> statement) { in AddStatement()235 void StatementBlock::AddStatement(AstNode* statement) { in AddStatement()242 statements_.push_back(unique_ptr<AstNode>(new Statement(expression_str))); in AddLiteral()244 statements_.push_back(unique_ptr<AstNode>( in AddLiteral()348 Assignment::Assignment(const std::string& left, AstNode* right) in Assignment()372 IfStatement::IfStatement(AstNode* expression, bool invert_expression) in IfStatement()388 Statement::Statement(unique_ptr<AstNode> expression) in Statement()391 Statement::Statement(AstNode* expression) : expression_(expression) {} in Statement()[all …]
56 struct AstNode { struct57 AstNode() = default;58 virtual ~AstNode() = default;63 struct ClassElement : public AstNode {68 struct Expression : public AstNode {126 struct Statement : public AstNode {273 struct Case : public AstNode {335 class Document : public AstNode {
73 unique_ptr<AstNode> BreakOnStatusNotOk() { in BreakOnStatusNotOk()78 return unique_ptr<AstNode>(ret); in BreakOnStatusNotOk()81 unique_ptr<AstNode> GotoErrorOnBadStatus() { in GotoErrorOnBadStatus()86 return unique_ptr<AstNode>(ret); in GotoErrorOnBadStatus()89 unique_ptr<AstNode> ReturnOnStatusNotOk() { in ReturnOnStatusNotOk()93 return unique_ptr<AstNode>(ret); in ReturnOnStatusNotOk()591 vector<unique_ptr<AstNode>> status_args; in HandleServerTransaction()
34 std::string AstNode::ToString() { in ToString()