Home | History | Annotate | Download | only in gn

Lines Matching defs:ParseNode

28 // ParseNode -------------------------------------------------------------------
31 class ParseNode {
33 ParseNode();
34 virtual ~ParseNode();
61 DISALLOW_COPY_AND_ASSIGN(ParseNode);
70 class AccessorNode : public ParseNode {
89 const ParseNode* index() const { return index_.get(); }
90 void set_index(scoped_ptr<ParseNode> i) { index_ = i.Pass(); }
94 scoped_ptr<ParseNode> index_;
101 class BinaryOpNode : public ParseNode {
117 const ParseNode* left() const { return left_.get(); }
118 void set_left(scoped_ptr<ParseNode> left) {
122 const ParseNode* right() const { return right_.get(); }
123 void set_right(scoped_ptr<ParseNode> right) {
128 scoped_ptr<ParseNode> left_;
130 scoped_ptr<ParseNode> right_;
137 class BlockNode : public ParseNode {
154 const std::vector<ParseNode*>& statements() const { return statements_; }
155 void append_statement(scoped_ptr<ParseNode> s) {
170 std::vector<ParseNode*> statements_;
177 class ConditionNode : public ParseNode {
192 const ParseNode* condition() const { return condition_.get(); }
193 void set_condition(scoped_ptr<ParseNode> c) {
204 const ParseNode* if_false() const { return if_false_.get(); }
205 void set_if_false(scoped_ptr<ParseNode> f) {
213 scoped_ptr<ParseNode> condition_; // Always non-null.
215 scoped_ptr<ParseNode> if_false_; // May be null.
222 class FunctionCallNode : public ParseNode {
254 class IdentifierNode : public ParseNode {
279 class ListNode : public ParseNode {
295 void append_item(scoped_ptr<ParseNode> s) {
298 const std::vector<const ParseNode*>& contents() const { return contents_; }
306 std::vector<const ParseNode*> contents_;
313 class LiteralNode : public ParseNode {
338 class UnaryOpNode : public ParseNode {
354 const ParseNode* operand() const { return operand_.get(); }
355 void set_operand(scoped_ptr<ParseNode> operand) {
361 scoped_ptr<ParseNode> operand_;