Files
sdk/pkg/front_end/parser_testcases/general/try_catch.dart.expect
T
Johnni Winther c8ff1b0c21 [cfe] Add BlockKind to parse/begin/endBlock
... and use this to computed AssignedVariables data for try statements

Change-Id: I235575b055cb89b553baf0ac728d9954d8d0aaa6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/123251
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2019-10-29 09:17:06 +00:00

42 lines
1.8 KiB
Plaintext

beginCompilationUnit(main)
beginMetadataStar(main)
endMetadataStar(0)
beginTopLevelMember(main)
beginTopLevelMethod(, null)
handleNoType()
handleIdentifier(main, topLevelFunctionDeclaration)
handleNoTypeVariables(()
beginFormalParameters((, MemberKind.TopLevelMethod)
endFormalParameters(0, (, ), MemberKind.TopLevelMethod)
handleAsyncModifier(null, null)
beginBlockFunctionBody({)
beginTryStatement(try)
beginBlock({, BlockKind(try statement))
endBlock(0, {, }, BlockKind(try statement))
beginCatchClause(catch)
beginFormalParameters((, MemberKind.Catch)
beginMetadataStar(e)
endMetadataStar(0)
beginFormalParameter(e, MemberKind.Catch, null, null, null)
handleNoType(()
handleIdentifier(e, formalParameterDeclaration)
handleFormalParameterWithoutValue(,)
endFormalParameter(null, null, e, null, null, FormalParameterKind.mandatory, MemberKind.Catch)
beginMetadataStar(s)
endMetadataStar(0)
beginFormalParameter(s, MemberKind.Catch, null, null, null)
handleNoType(,)
handleIdentifier(s, formalParameterDeclaration)
handleFormalParameterWithoutValue())
endFormalParameter(null, null, s, null, null, FormalParameterKind.mandatory, MemberKind.Catch)
endFormalParameters(2, (, ), MemberKind.Catch)
endCatchClause({)
beginBlock({, BlockKind(catch clause))
endBlock(0, {, }, BlockKind(catch clause))
handleCatchBlock(null, catch, ,)
endTryStatement(1, try, null)
endBlockFunctionBody(1, {, })
endTopLevelMethod(main, null, })
endTopLevelDeclaration()
endCompilationUnit(1, )