Changeset View
Changeset View
Standalone View
Standalone View
parser/generated.h
Show First 20 Lines • Show All 774 Lines • ▼ Show 20 Line(s) | 739 | if ( ! result ) return nullptr; | |||
---|---|---|---|---|---|
775 | } | 775 | } | ||
776 | 776 | | |||
777 | 777 | | |||
778 | Ast* visitNode(_withitem* node) { | 778 | Ast* visitNode(_withitem* node) { | ||
779 | bool ranges_copied = false; Q_UNUSED(ranges_copied); | 779 | bool ranges_copied = false; Q_UNUSED(ranges_copied); | ||
780 | if ( ! node ) return nullptr; | 780 | if ( ! node ) return nullptr; | ||
781 | WithItemAst* v = new WithItemAst(parent()); | 781 | WithItemAst* v = new WithItemAst(parent()); | ||
782 | nodeStack.push(v); v->contextExpression = static_cast<ExpressionAst*>(visitNode(node->context_expr)); nodeStack.pop(); | 782 | nodeStack.push(v); v->contextExpression = static_cast<ExpressionAst*>(visitNode(node->context_expr)); nodeStack.pop(); | ||
783 | nodeStack.push(v); v->optionalVars = static_cast<NameAst*>(visitNode(node->optional_vars)); nodeStack.pop(); | 783 | nodeStack.push(v); v->optionalVars = static_cast<ExpressionAst*>(visitNode(node->optional_vars)); nodeStack.pop(); | ||
784 | return v; | 784 | return v; | ||
785 | } | 785 | } | ||
786 | 786 | | |||
787 | }; | 787 | }; | ||
788 | 788 | | |||
789 | /* | 789 | /* | ||
790 | * End generated code | 790 | * End generated code | ||
791 | */ | 791 | */ | ||
792 | 792 | |