Lines Matching refs:Optional
27 base::Optional<std::string> name;
108 ParseResultHolder<base::Optional<std::string>>::id =
135 ParseResultHolder<base::Optional<RangeExpression>>::id =
142 ParseResultHolder<base::Optional<TypeList>>::id =
157 ParseResultHolder<base::Optional<Statement*>>::id =
161 ParseResultHolder<base::Optional<Expression*>>::id =
173 base::Optional<ParseResult> AddGlobalDeclaration( in AddGlobalDeclaration()
186 base::Optional<ParseResult> MakeCall(ParseResultIterator* child_results) { in MakeCall()
196 base::Optional<ParseResult> MakeBinaryOperator( in MakeBinaryOperator()
207 base::Optional<ParseResult> MakeUnaryOperator( in MakeUnaryOperator()
218 base::Optional<ParseResult> MakeParameterListFromTypes( in MakeParameterListFromTypes()
227 base::Optional<ParseResult> MakeParameterListFromNameAndTypeList( in MakeParameterListFromNameAndTypeList()
244 base::Optional<ParseResult> MakeAssertStatement( in MakeAssertStatement()
254 base::Optional<ParseResult> MakeDebugStatement( in MakeDebugStatement()
262 base::Optional<ParseResult> MakeVoidType(ParseResultIterator* child_results) { in MakeVoidType()
267 base::Optional<ParseResult> MakeExternalMacro( in MakeExternalMacro()
269 auto operator_name = child_results->NextAs<base::Optional<std::string>>(); in MakeExternalMacro()
286 base::Optional<ParseResult> MakeTorqueMacroDeclaration( in MakeTorqueMacroDeclaration()
288 auto operator_name = child_results->NextAs<base::Optional<std::string>>(); in MakeTorqueMacroDeclaration()
294 auto body = child_results->NextAs<base::Optional<Statement*>>(); in MakeTorqueMacroDeclaration()
307 base::Optional<ParseResult> MakeTorqueBuiltinDeclaration( in MakeTorqueBuiltinDeclaration()
314 auto body = child_results->NextAs<base::Optional<Statement*>>(); in MakeTorqueBuiltinDeclaration()
327 base::Optional<ParseResult> MakeConstDeclaration( in MakeConstDeclaration()
337 base::Optional<ParseResult> MakeExternConstDeclaration( in MakeExternConstDeclaration()
347 base::Optional<ParseResult> MakeTypeAliasDeclaration( in MakeTypeAliasDeclaration()
355 base::Optional<ParseResult> MakeTypeDeclaration( in MakeTypeDeclaration()
358 auto extends = child_results->NextAs<base::Optional<std::string>>(); in MakeTypeDeclaration()
359 auto generates = child_results->NextAs<base::Optional<std::string>>(); in MakeTypeDeclaration()
361 child_results->NextAs<base::Optional<std::string>>(); in MakeTypeDeclaration()
368 base::Optional<ParseResult> MakeExplicitModuleDeclaration( in MakeExplicitModuleDeclaration()
377 base::Optional<ParseResult> MakeSpecializationDeclaration( in MakeSpecializationDeclaration()
392 base::Optional<ParseResult> MakeStructDeclaration( in MakeStructDeclaration()
401 base::Optional<ParseResult> MakeExternalBuiltin( in MakeExternalBuiltin()
419 base::Optional<ParseResult> MakeExternalRuntime( in MakeExternalRuntime()
430 base::Optional<ParseResult> StringLiteralUnquoteAction( in StringLiteralUnquoteAction()
436 base::Optional<ParseResult> MakeBasicTypeExpression( in MakeBasicTypeExpression()
445 base::Optional<ParseResult> MakeFunctionTypeExpression( in MakeFunctionTypeExpression()
454 base::Optional<ParseResult> MakeUnionTypeExpression( in MakeUnionTypeExpression()
462 base::Optional<ParseResult> MakeExpressionStatement( in MakeExpressionStatement()
469 base::Optional<ParseResult> MakeIfStatement( in MakeIfStatement()
474 auto if_false = child_results->NextAs<base::Optional<Statement*>>(); in MakeIfStatement()
487 base::Optional<ParseResult> MakeTypeswitchStatement( in MakeTypeswitchStatement()
565 base::Optional<ParseResult> MakeTypeswitchCase( in MakeTypeswitchCase()
567 auto name = child_results->NextAs<base::Optional<std::string>>(); in MakeTypeswitchCase()
574 base::Optional<ParseResult> MakeWhileStatement( in MakeWhileStatement()
582 base::Optional<ParseResult> MakeReturnStatement( in MakeReturnStatement()
584 auto value = child_results->NextAs<base::Optional<Expression*>>(); in MakeReturnStatement()
589 base::Optional<ParseResult> MakeTailCallStatement( in MakeTailCallStatement()
596 base::Optional<ParseResult> MakeVarDeclarationStatement( in MakeVarDeclarationStatement()
603 base::Optional<Expression*> initializer; in MakeVarDeclarationStatement()
611 base::Optional<ParseResult> MakeBreakStatement( in MakeBreakStatement()
617 base::Optional<ParseResult> MakeContinueStatement( in MakeContinueStatement()
623 base::Optional<ParseResult> MakeGotoStatement( in MakeGotoStatement()
632 base::Optional<ParseResult> MakeBlockStatement( in MakeBlockStatement()
640 base::Optional<ParseResult> MakeTryLabelStatement( in MakeTryLabelStatement()
649 base::Optional<ParseResult> MakeForOfLoopStatement( in MakeForOfLoopStatement()
653 auto range = child_results->NextAs<base::Optional<RangeExpression>>(); in MakeForOfLoopStatement()
660 base::Optional<ParseResult> MakeForLoopStatement( in MakeForLoopStatement()
662 auto var_decl = child_results->NextAs<base::Optional<Statement*>>(); in MakeForLoopStatement()
663 auto test = child_results->NextAs<base::Optional<Expression*>>(); in MakeForLoopStatement()
664 auto action = child_results->NextAs<base::Optional<Expression*>>(); in MakeForLoopStatement()
670 base::Optional<ParseResult> MakeLabelBlock(ParseResultIterator* child_results) { in MakeLabelBlock()
679 base::Optional<ParseResult> MakeRangeExpression( in MakeRangeExpression()
681 auto begin = child_results->NextAs<base::Optional<Expression*>>(); in MakeRangeExpression()
682 auto end = child_results->NextAs<base::Optional<Expression*>>(); in MakeRangeExpression()
687 base::Optional<ParseResult> MakeExpressionWithSource( in MakeExpressionWithSource()
694 base::Optional<ParseResult> MakeIdentifierExpression( in MakeIdentifierExpression()
704 base::Optional<ParseResult> MakeFieldAccessExpression( in MakeFieldAccessExpression()
713 base::Optional<ParseResult> MakeElementAccessExpression( in MakeElementAccessExpression()
721 base::Optional<ParseResult> MakeStructExpression( in MakeStructExpression()
730 base::Optional<ParseResult> MakeAssignmentExpression( in MakeAssignmentExpression()
733 auto op = child_results->NextAs<base::Optional<std::string>>(); in MakeAssignmentExpression()
740 base::Optional<ParseResult> MakeNumberLiteralExpression( in MakeNumberLiteralExpression()
747 base::Optional<ParseResult> MakeStringLiteralExpression( in MakeStringLiteralExpression()
754 base::Optional<ParseResult> MakeIncrementDecrementExpressionPostfix( in MakeIncrementDecrementExpressionPostfix()
763 base::Optional<ParseResult> MakeIncrementDecrementExpressionPrefix( in MakeIncrementDecrementExpressionPrefix()
772 base::Optional<ParseResult> MakeLogicalOrExpression( in MakeLogicalOrExpression()
780 base::Optional<ParseResult> MakeLogicalAndExpression( in MakeLogicalAndExpression()
788 base::Optional<ParseResult> MakeConditionalExpression( in MakeConditionalExpression()
798 base::Optional<ParseResult> MakeLabelAndTypes( in MakeLabelAndTypes()
805 base::Optional<ParseResult> MakeNameAndType( in MakeNameAndType()
812 base::Optional<ParseResult> ExtractAssignmentOperator( in ExtractAssignmentOperator()
815 base::Optional<std::string> result = std::string(op.begin(), op.end() - 1); in ExtractAssignmentOperator()
941 Symbol* optionalGenericParameters = Optional<TypeList>(&genericParameters);
1108 Rule({Token("=")}, YieldDefaultValue<base::Optional<std::string>>),
1135 Rule({Token("["), Optional<Expression*>(expression), Token(":"),
1136 Optional<Expression*>(expression), Token("]")},
1155 Rule({Token("return"), Optional<Expression*>(expression), Token(";")},
1172 Optional<Statement*>(Sequence({Token("else"), &statement}))},
1190 Optional<RangeExpression>(&rangeSpecifier), Token(")"),
1194 Optional<Statement*>(&varDeclarationWithInitialization), Token(";"),
1195 Optional<Expression*>(expression), Token(";"),
1196 Optional<Expression*>(expression), Token(")"), &atomarStatement},
1202 Optional<std::string>(Sequence({&identifier, Token(":")})), &type,
1208 Rule({&block}, CastParseResult<Statement*, base::Optional<Statement*>>),
1209 Rule({Token(";")}, YieldDefaultValue<base::Optional<Statement*>>)};
1220 Optional<std::string>(Sequence({Token("extends"), &identifier})),
1221 Optional<std::string>(
1223 Optional<std::string>(
1230 Optional<std::string>(
1244 Rule({Optional<std::string>(