5b76fc2172
Change-Id: I370089a6de8c585a60785fe069de5da869ae23f6 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/145820 Commit-Queue: Jens Johansen <jensj@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>
355 lines
20 KiB
Plaintext
355 lines
20 KiB
Plaintext
parseUnit(main)
|
|
skipErrorTokens(main)
|
|
listener: beginCompilationUnit(main)
|
|
syntheticPreviousToken(main)
|
|
parseTopLevelDeclarationImpl(, Instance of 'DirectiveContext')
|
|
parseMetadataStar()
|
|
listener: beginMetadataStar(main)
|
|
listener: endMetadataStar(0)
|
|
parseTopLevelMemberImpl()
|
|
listener: beginTopLevelMember(main)
|
|
isReservedKeyword(()
|
|
parseTopLevelMethod(, null, , Instance of 'NoType', null, main, false)
|
|
listener: beginTopLevelMethod(, 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)
|
|
parseFormalParameter((, FormalParameterKind.mandatory, MemberKind.TopLevelMethod)
|
|
parseMetadataStar(()
|
|
listener: beginMetadataStar(List)
|
|
listener: endMetadataStar(0)
|
|
listener: beginFormalParameter(List, MemberKind.TopLevelMethod, null, null, null)
|
|
listener: handleIdentifier(List, typeReference)
|
|
listener: beginTypeArguments(<)
|
|
listener: handleIdentifier(int, typeReference)
|
|
listener: handleNoTypeArguments(>)
|
|
listener: handleType(int, null)
|
|
listener: endTypeArguments(1, <, >)
|
|
listener: handleType(List, ?)
|
|
ensureIdentifier(?, formalParameterDeclaration)
|
|
listener: handleIdentifier(a, formalParameterDeclaration)
|
|
listener: handleFormalParameterWithoutValue(,)
|
|
listener: endFormalParameter(null, null, a, null, null, FormalParameterKind.mandatory, MemberKind.TopLevelMethod)
|
|
parseFormalParameter(,, FormalParameterKind.mandatory, MemberKind.TopLevelMethod)
|
|
parseMetadataStar(,)
|
|
listener: beginMetadataStar(bool)
|
|
listener: endMetadataStar(0)
|
|
listener: beginFormalParameter(bool, MemberKind.TopLevelMethod, null, null, null)
|
|
listener: handleIdentifier(bool, typeReference)
|
|
listener: handleNoTypeArguments(?)
|
|
listener: handleType(bool, ?)
|
|
ensureIdentifier(?, formalParameterDeclaration)
|
|
listener: handleIdentifier(b, formalParameterDeclaration)
|
|
listener: handleFormalParameterWithoutValue())
|
|
listener: endFormalParameter(null, null, b, null, null, FormalParameterKind.mandatory, MemberKind.TopLevelMethod)
|
|
listener: endFormalParameters(2, (, ), MemberKind.TopLevelMethod)
|
|
parseAsyncModifierOpt())
|
|
listener: handleAsyncModifier(null, null)
|
|
inPlainSync()
|
|
parseFunctionBody(), false, false)
|
|
listener: beginBlockFunctionBody({)
|
|
notEofOrValue(}, a)
|
|
parseStatement({)
|
|
parseStatementX({)
|
|
parseExpressionStatementOrDeclarationAfterModifiers({, {, null, null, null, false)
|
|
looksLikeLocalFunction(a)
|
|
parseExpressionStatement({)
|
|
parseExpression({)
|
|
parsePrecedenceExpression({, 1, true)
|
|
parseUnaryExpression({, true)
|
|
parsePrimary({, expression)
|
|
parseSendOrFunctionLiteral({, expression)
|
|
parseSend({, expression)
|
|
ensureIdentifier({, expression)
|
|
listener: handleIdentifier(a, expression)
|
|
listener: handleNoTypeArguments(!)
|
|
parseArgumentsOpt(a)
|
|
listener: handleNoArguments(!)
|
|
listener: handleSend(a, !)
|
|
listener: handleNonNullAssertExpression(!)
|
|
parseArgumentOrIndexStar(!, Instance of 'NoTypeParamOrArg', false)
|
|
parseExpression([)
|
|
parsePrecedenceExpression([, 1, true)
|
|
parseUnaryExpression([, true)
|
|
parsePrimary([, expression)
|
|
parseLiteralInt([)
|
|
listener: handleLiteralInt(0)
|
|
listener: handleIndexedExpression(null, [, ])
|
|
ensureSemicolon(])
|
|
listener: handleExpressionStatement(;)
|
|
notEofOrValue(}, a)
|
|
parseStatement(;)
|
|
parseStatementX(;)
|
|
parseExpressionStatementOrDeclarationAfterModifiers(;, ;, null, null, null, false)
|
|
looksLikeLocalFunction(a)
|
|
parseExpressionStatement(;)
|
|
parseExpression(;)
|
|
parsePrecedenceExpression(;, 1, true)
|
|
parseUnaryExpression(;, true)
|
|
parsePrimary(;, expression)
|
|
parseSendOrFunctionLiteral(;, expression)
|
|
parseSend(;, expression)
|
|
ensureIdentifier(;, expression)
|
|
listener: handleIdentifier(a, expression)
|
|
listener: handleNoTypeArguments(?)
|
|
parseArgumentsOpt(a)
|
|
listener: handleNoArguments(?)
|
|
listener: handleSend(a, ?)
|
|
canParseAsConditional(?)
|
|
parseExpressionWithoutCascade(?)
|
|
parsePrecedenceExpression(?, 1, false)
|
|
parseUnaryExpression(?, false)
|
|
parsePrimary(?, expression)
|
|
parseLiteralListSuffix(?, null)
|
|
parseExpression([)
|
|
parsePrecedenceExpression([, 1, true)
|
|
parseUnaryExpression([, true)
|
|
parsePrimary([, expression)
|
|
parseLiteralInt([)
|
|
parseArgumentOrIndexStar(a, Instance of 'NoTypeParamOrArg', true)
|
|
parseExpression([)
|
|
parsePrecedenceExpression([, 1, true)
|
|
parseUnaryExpression([, true)
|
|
parsePrimary([, expression)
|
|
parseLiteralInt([)
|
|
listener: handleLiteralInt(0)
|
|
listener: handleIndexedExpression(?, [, ])
|
|
ensureSemicolon(])
|
|
listener: handleExpressionStatement(;)
|
|
notEofOrValue(}, a)
|
|
parseStatement(;)
|
|
parseStatementX(;)
|
|
parseExpressionStatementOrDeclarationAfterModifiers(;, ;, null, null, null, false)
|
|
looksLikeLocalFunction(a)
|
|
parseExpressionStatement(;)
|
|
parseExpression(;)
|
|
parsePrecedenceExpression(;, 1, true)
|
|
parseUnaryExpression(;, true)
|
|
parsePrimary(;, expression)
|
|
parseSendOrFunctionLiteral(;, expression)
|
|
parseSend(;, expression)
|
|
ensureIdentifier(;, expression)
|
|
listener: handleIdentifier(a, expression)
|
|
listener: handleNoTypeArguments(!)
|
|
parseArgumentsOpt(a)
|
|
listener: handleNoArguments(!)
|
|
listener: handleSend(a, !)
|
|
listener: handleNonNullAssertExpression(!)
|
|
canParseAsConditional(?)
|
|
parseExpressionWithoutCascade(?)
|
|
parsePrecedenceExpression(?, 1, false)
|
|
parseUnaryExpression(?, false)
|
|
parsePrimary(?, expression)
|
|
parseLiteralListSuffix(?, null)
|
|
parseExpression([)
|
|
parsePrecedenceExpression([, 1, true)
|
|
parseUnaryExpression([, true)
|
|
parsePrimary([, expression)
|
|
parseLiteralInt([)
|
|
parseArgumentOrIndexStar(!, Instance of 'NoTypeParamOrArg', true)
|
|
parseExpression([)
|
|
parsePrecedenceExpression([, 1, true)
|
|
parseUnaryExpression([, true)
|
|
parsePrimary([, expression)
|
|
parseLiteralInt([)
|
|
listener: handleLiteralInt(0)
|
|
listener: handleIndexedExpression(?, [, ])
|
|
ensureSemicolon(])
|
|
listener: handleExpressionStatement(;)
|
|
notEofOrValue(}, ()
|
|
parseStatement(;)
|
|
parseStatementX(;)
|
|
parseExpressionStatementOrDeclaration(;, false)
|
|
parseExpressionStatementOrDeclarationAfterModifiers(;, ;, null, null, null, false)
|
|
looksLikeLocalFunction(()
|
|
parseExpressionStatement(;)
|
|
parseExpression(;)
|
|
parsePrecedenceExpression(;, 1, true)
|
|
parseUnaryExpression(;, true)
|
|
parsePrimary(;, expression)
|
|
parseParenthesizedExpressionOrFunctionLiteral(;)
|
|
parseParenthesizedExpression(;)
|
|
parseExpressionInParenthesis(;)
|
|
parseExpressionInParenthesisRest(()
|
|
parseExpression(()
|
|
parsePrecedenceExpression((, 1, true)
|
|
parseUnaryExpression((, true)
|
|
parsePrimary((, expression)
|
|
parseSendOrFunctionLiteral((, expression)
|
|
parseSend((, expression)
|
|
ensureIdentifier((, expression)
|
|
listener: handleIdentifier(a, expression)
|
|
listener: handleNoTypeArguments(!)
|
|
parseArgumentsOpt(a)
|
|
listener: handleNoArguments(!)
|
|
listener: handleSend(a, !)
|
|
listener: handleNonNullAssertExpression(!)
|
|
ensureCloseParen(!, ()
|
|
listener: handleParenthesizedExpression(()
|
|
canParseAsConditional(?)
|
|
parseExpressionWithoutCascade(?)
|
|
parsePrecedenceExpression(?, 1, false)
|
|
parseUnaryExpression(?, false)
|
|
parsePrimary(?, expression)
|
|
parseLiteralListSuffix(?, null)
|
|
parseExpression([)
|
|
parsePrecedenceExpression([, 1, true)
|
|
parseUnaryExpression([, true)
|
|
parsePrimary([, expression)
|
|
parseLiteralInt([)
|
|
parseArgumentOrIndexStar(), Instance of 'NoTypeParamOrArg', true)
|
|
parseExpression([)
|
|
parsePrecedenceExpression([, 1, true)
|
|
parseUnaryExpression([, true)
|
|
parsePrimary([, expression)
|
|
parseLiteralInt([)
|
|
listener: handleLiteralInt(0)
|
|
listener: handleIndexedExpression(?, [, ])
|
|
ensureSemicolon(])
|
|
listener: handleExpressionStatement(;)
|
|
notEofOrValue(}, b)
|
|
parseStatement(;)
|
|
parseStatementX(;)
|
|
parseExpressionStatementOrDeclarationAfterModifiers(;, ;, null, null, null, false)
|
|
looksLikeLocalFunction(b)
|
|
parseExpressionStatement(;)
|
|
parseExpression(;)
|
|
parsePrecedenceExpression(;, 1, true)
|
|
parseUnaryExpression(;, true)
|
|
parsePrimary(;, expression)
|
|
parseSendOrFunctionLiteral(;, expression)
|
|
parseSend(;, expression)
|
|
ensureIdentifier(;, expression)
|
|
listener: handleIdentifier(b, expression)
|
|
listener: handleNoTypeArguments(!)
|
|
parseArgumentsOpt(b)
|
|
listener: handleNoArguments(!)
|
|
listener: handleSend(b, !)
|
|
listener: handleNonNullAssertExpression(!)
|
|
canParseAsConditional(?)
|
|
parseExpressionWithoutCascade(?)
|
|
parsePrecedenceExpression(?, 1, false)
|
|
parseUnaryExpression(?, false)
|
|
parsePrimary(?, expression)
|
|
parseLiteralListSuffix(?, null)
|
|
parseExpression([)
|
|
parsePrecedenceExpression([, 1, true)
|
|
parseUnaryExpression([, true)
|
|
parsePrimary([, expression)
|
|
parseLiteralInt([)
|
|
parseExpressionWithoutCascade(:)
|
|
parsePrecedenceExpression(:, 1, false)
|
|
parseUnaryExpression(:, false)
|
|
parsePrimary(:, expression)
|
|
parseLiteralInt(:)
|
|
parseConditionalExpressionRest(!)
|
|
listener: beginConditionalExpression(?)
|
|
parseExpressionWithoutCascade(?)
|
|
parsePrecedenceExpression(?, 1, false)
|
|
parseUnaryExpression(?, false)
|
|
parsePrimary(?, expression)
|
|
listener: handleNoTypeArguments([)
|
|
parseLiteralListSuffix(?, null)
|
|
parseExpression([)
|
|
parsePrecedenceExpression([, 1, true)
|
|
parseUnaryExpression([, true)
|
|
parsePrimary([, expression)
|
|
parseLiteralInt([)
|
|
listener: handleLiteralInt(0)
|
|
listener: handleLiteralList(1, [, null, ])
|
|
ensureColon(])
|
|
listener: handleConditionalExpressionColon()
|
|
parseExpressionWithoutCascade(:)
|
|
parsePrecedenceExpression(:, 1, false)
|
|
parseUnaryExpression(:, false)
|
|
parsePrimary(:, expression)
|
|
parseLiteralInt(:)
|
|
listener: handleLiteralInt(0)
|
|
listener: endConditionalExpression(?, :)
|
|
ensureSemicolon(0)
|
|
listener: handleExpressionStatement(;)
|
|
notEofOrValue(}, ()
|
|
parseStatement(;)
|
|
parseStatementX(;)
|
|
parseExpressionStatementOrDeclaration(;, false)
|
|
parseExpressionStatementOrDeclarationAfterModifiers(;, ;, null, null, null, false)
|
|
looksLikeLocalFunction(()
|
|
parseExpressionStatement(;)
|
|
parseExpression(;)
|
|
parsePrecedenceExpression(;, 1, true)
|
|
parseUnaryExpression(;, true)
|
|
parsePrimary(;, expression)
|
|
parseParenthesizedExpressionOrFunctionLiteral(;)
|
|
parseParenthesizedExpression(;)
|
|
parseExpressionInParenthesis(;)
|
|
parseExpressionInParenthesisRest(()
|
|
parseExpression(()
|
|
parsePrecedenceExpression((, 1, true)
|
|
parseUnaryExpression((, true)
|
|
parsePrimary((, expression)
|
|
parseSendOrFunctionLiteral((, expression)
|
|
parseSend((, expression)
|
|
ensureIdentifier((, expression)
|
|
listener: handleIdentifier(b, expression)
|
|
listener: handleNoTypeArguments(!)
|
|
parseArgumentsOpt(b)
|
|
listener: handleNoArguments(!)
|
|
listener: handleSend(b, !)
|
|
listener: handleNonNullAssertExpression(!)
|
|
ensureCloseParen(!, ()
|
|
listener: handleParenthesizedExpression(()
|
|
canParseAsConditional(?)
|
|
parseExpressionWithoutCascade(?)
|
|
parsePrecedenceExpression(?, 1, false)
|
|
parseUnaryExpression(?, false)
|
|
parsePrimary(?, expression)
|
|
parseLiteralListSuffix(?, null)
|
|
parseExpression([)
|
|
parsePrecedenceExpression([, 1, true)
|
|
parseUnaryExpression([, true)
|
|
parsePrimary([, expression)
|
|
parseLiteralInt([)
|
|
parseExpressionWithoutCascade(:)
|
|
parsePrecedenceExpression(:, 1, false)
|
|
parseUnaryExpression(:, false)
|
|
parsePrimary(:, expression)
|
|
parseLiteralInt(:)
|
|
parseConditionalExpressionRest())
|
|
listener: beginConditionalExpression(?)
|
|
parseExpressionWithoutCascade(?)
|
|
parsePrecedenceExpression(?, 1, false)
|
|
parseUnaryExpression(?, false)
|
|
parsePrimary(?, expression)
|
|
listener: handleNoTypeArguments([)
|
|
parseLiteralListSuffix(?, null)
|
|
parseExpression([)
|
|
parsePrecedenceExpression([, 1, true)
|
|
parseUnaryExpression([, true)
|
|
parsePrimary([, expression)
|
|
parseLiteralInt([)
|
|
listener: handleLiteralInt(0)
|
|
listener: handleLiteralList(1, [, null, ])
|
|
ensureColon(])
|
|
listener: handleConditionalExpressionColon()
|
|
parseExpressionWithoutCascade(:)
|
|
parsePrecedenceExpression(:, 1, false)
|
|
parseUnaryExpression(:, false)
|
|
parsePrimary(:, expression)
|
|
parseLiteralInt(:)
|
|
listener: handleLiteralInt(0)
|
|
listener: endConditionalExpression(?, :)
|
|
ensureSemicolon(0)
|
|
listener: handleExpressionStatement(;)
|
|
notEofOrValue(}, })
|
|
listener: endBlockFunctionBody(6, {, })
|
|
listener: endTopLevelMethod(main, null, })
|
|
listener: endTopLevelDeclaration()
|
|
reportAllErrorTokens(main)
|
|
listener: endCompilationUnit(1, )
|