Files
sdk/pkg/front_end/parser_testcases/patterns/issue51415.dart.expect
T
Chloe Stefantsova 6b0acfecc1 [cfe] Put patterns in the scopes of their declared variables
Closes https://github.com/dart-lang/sdk/issues/51971

Change-Id: I8ba634e7303bafdb1895c50970fbc80321f4bf6a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/296581
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
2023-04-24 07:30:00 +00:00

111 lines
4.4 KiB
Plaintext

beginCompilationUnit(void)
beginMetadataStar(void)
endMetadataStar(0)
beginTopLevelMember(void)
beginTopLevelMethod(, null, null)
handleVoidKeyword(void)
handleIdentifier(foo, topLevelFunctionDeclaration)
handleNoTypeVariables(()
beginFormalParameters((, MemberKind.TopLevelMethod)
endFormalParameters(0, (, ), MemberKind.TopLevelMethod)
handleAsyncModifier(null, null)
beginBlockFunctionBody({)
beginIfStatement(if)
handleIdentifier(obj, expression)
handleNoTypeArguments(case)
handleNoArguments(case)
handleSend(obj, case)
beginPattern(case)
handleIdentifier(longFieldName, namedRecordFieldReference)
beginPattern(:)
beginConstantPattern(const)
beginParenthesizedExpressionOrRecordLiteral(()
handleIdentifier(first, namedRecordFieldReference)
handleLiteralInt(1)
handleNamedRecordField(:)
handleIdentifier(second, namedRecordFieldReference)
handleLiteralInt(2)
handleNamedRecordField(:)
endRecordLiteral((, 2, null)
endConstantPattern(const)
endPattern())
handlePatternField(:)
handleRecordPattern((, 1)
endPattern())
handleParenthesizedCondition((, case, null)
beginThenStatement({)
beginBlock({, BlockKind(statement))
handleEmptyStatement(;)
endBlock(1, {, }, BlockKind(statement))
endThenStatement(})
endIfStatement(if, null)
beginIfStatement(if)
handleIdentifier(obj, expression)
handleNoTypeArguments(case)
handleNoArguments(case)
handleSend(obj, case)
beginPattern(case)
beginConstantPattern(const)
beginParenthesizedExpressionOrRecordLiteral(()
handleIdentifier(element, expression)
handleNoTypeArguments(,)
handleNoArguments(,)
handleSend(element, ,)
handleIdentifier(element, expression)
handleNoTypeArguments(,)
handleNoArguments(,)
handleSend(element, ,)
handleIdentifier(element, expression)
handleNoTypeArguments(,)
handleNoArguments(,)
handleSend(element, ,)
handleIdentifier(element, expression)
handleNoTypeArguments())
handleNoArguments())
handleSend(element, ))
endRecordLiteral((, 4, null)
endConstantPattern(const)
endPattern())
handleParenthesizedCondition((, case, null)
beginThenStatement({)
beginBlock({, BlockKind(statement))
handleEmptyStatement(;)
endBlock(1, {, }, BlockKind(statement))
endThenStatement(})
endIfStatement(if, null)
beginIfStatement(if)
handleIdentifier(obj, expression)
handleNoTypeArguments(case)
handleNoArguments(case)
handleSend(obj, case)
beginPattern(case)
handleNoTypeArguments(()
handleIdentifier(longFieldName, namedArgumentReference)
beginPattern(:)
beginConstantPattern(const)
beginParenthesizedExpressionOrRecordLiteral(()
handleIdentifier(first, namedRecordFieldReference)
handleLiteralInt(1)
handleNamedRecordField(:)
handleIdentifier(second, namedRecordFieldReference)
handleLiteralInt(2)
handleNamedRecordField(:)
endRecordLiteral((, 2, null)
endConstantPattern(const)
endPattern())
handlePatternField(:)
handleObjectPatternFields(1, (, ))
handleObjectPattern(Foo, null, null)
endPattern())
handleParenthesizedCondition((, case, null)
beginThenStatement({)
beginBlock({, BlockKind(statement))
handleEmptyStatement(;)
endBlock(1, {, }, BlockKind(statement))
endThenStatement(})
endIfStatement(if, null)
endBlockFunctionBody(3, {, })
endTopLevelMethod(void, null, })
endTopLevelDeclaration()
endCompilationUnit(1, )