be29db2621
This updates the parser suites to use the FolderOptions already used by other expectation tests. This aligns the support for configuration tests in particular wrt experimental flags. As a consequence of this change, all parser suite enable patterns for parser. Since the test setup didn't use experimental flags previously, newly added tests didn't use the current default, which is with pattern support. Since we don't have any tests explicitly for non-pattern support, all tests are updated to support patterns as it at least aligns with the default for current and future code. Change-Id: I80ee769b35e74a0d111135ca4690983872a63623 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/459741 Reviewed-by: Jens Johansen <jensj@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
67 lines
3.6 KiB
Plaintext
67 lines
3.6 KiB
Plaintext
parseUnit(main)
|
|
skipErrorTokens(main)
|
|
listener: beginCompilationUnit(main)
|
|
syntheticPreviousToken(main)
|
|
parseTopLevelDeclarationImpl(, DirectiveContext(DirectiveState.Unknown))
|
|
parseMetadataStar()
|
|
listener: beginMetadataStar(main)
|
|
listener: endMetadataStar(0)
|
|
parseTopLevelMemberImpl()
|
|
listener: beginTopLevelMember(main)
|
|
isReservedKeyword(()
|
|
parseTopLevelMethod(, null, null, , NoType(), null, main, false)
|
|
listener: beginTopLevelMethod(, null, null)
|
|
listener: handleNoType()
|
|
ensureIdentifierPotentiallyRecovered(, topLevelFunctionDeclaration, false)
|
|
listener: handleIdentifier(main, topLevelFunctionDeclaration)
|
|
parseMethodTypeVar(main)
|
|
listener: handleNoTypeVariables(()
|
|
parseGetterOrFormalParameters(main, main, false, MemberKind.TopLevelMethod)
|
|
parseFormalParameters(main, MemberKind.TopLevelMethod)
|
|
parseFormalParametersRest((, MemberKind.TopLevelMethod)
|
|
listener: beginFormalParameters((, MemberKind.TopLevelMethod)
|
|
listener: endFormalParameters(0, (, ), MemberKind.TopLevelMethod)
|
|
parseAsyncModifierOpt())
|
|
listener: handleAsyncModifier(null, null)
|
|
inPlainSync()
|
|
parseFunctionBody(), false, false)
|
|
listener: beginBlockFunctionBody({)
|
|
notEofOrType(CLOSE_CURLY_BRACKET, ()
|
|
parseStatement({)
|
|
parseStatementX({)
|
|
parseExpressionStatementOrDeclaration({, null)
|
|
parseExpressionStatementOrDeclarationAfterModifiers({, {, null, null, null, null)
|
|
looksLikeLocalFunction(()
|
|
parseExpressionStatement({)
|
|
parseExpression({)
|
|
looksLikeOuterPatternEquals({)
|
|
skipOuterPattern({)
|
|
parsePrecedenceExpression({, 1, true, ConstantPatternContext.none)
|
|
parseUnaryExpression({, true, ConstantPatternContext.none)
|
|
parsePrimary({, expression, ConstantPatternContext.none)
|
|
parseParenthesizedExpressionFunctionLiteralOrRecordLiteral({, ConstantPatternContext.none)
|
|
listener: handleNoTypeVariables(()
|
|
parseFunctionExpression({)
|
|
listener: beginFunctionExpression(()
|
|
parseFormalParametersRequiredOpt({, MemberKind.Local)
|
|
parseFormalParametersRest((, MemberKind.Local)
|
|
listener: beginFormalParameters((, MemberKind.Local)
|
|
listener: endFormalParameters(0, (, ), MemberKind.Local)
|
|
parseAsyncOptBody(), true, false)
|
|
parseAsyncModifierOpt())
|
|
listener: handleAsyncModifier(null, null)
|
|
inPlainSync()
|
|
parseFunctionBody(), true, false)
|
|
listener: beginBlockFunctionBody({)
|
|
notEofOrType(CLOSE_CURLY_BRACKET, })
|
|
listener: endBlockFunctionBody(0, {, })
|
|
listener: endFunctionExpression((, })
|
|
ensureSemicolon(})
|
|
listener: handleExpressionStatement((, ;)
|
|
notEofOrType(CLOSE_CURLY_BRACKET, })
|
|
listener: endBlockFunctionBody(1, {, })
|
|
listener: endTopLevelMethod(main, null, })
|
|
listener: endTopLevelDeclaration(})
|
|
reportAllErrorTokens(main)
|
|
listener: endCompilationUnit(1, )
|