blob: 52e10af97f2c98d7f7b1b30a9feeca648656a9b5 [file]
Problems reported:
parser/patterns/declaredVariable_inPatternAssignment_usingFinal:2:13: Variable 'd' can't be declared in a pattern assignment.
[a, final d] = y;
^
beginCompilationUnit(void)
beginMetadataStar(void)
endMetadataStar(0)
beginTopLevelMember(void)
beginTopLevelMethod(, null, null)
handleVoidKeyword(void)
handleIdentifier(f, topLevelFunctionDeclaration)
handleNoTypeVariables(()
beginFormalParameters((, MemberKind.TopLevelMethod)
endFormalParameters(0, (, ), MemberKind.TopLevelMethod)
handleAsyncModifier(null, null)
beginBlockFunctionBody({)
beginPattern({)
handleNoTypeArguments([)
beginPattern([)
handleAssignedVariablePattern(a)
endPattern(a)
beginPattern(,)
handleNoType(final)
handleRecoverableError(Message[Template(PatternAssignmentDeclaresVariable), Variable 'd' can't be declared in a pattern assignment., Try using a preexisting variable or changing the assignment to a pattern variable declaration., {variableName: d}], d, d)
handleDeclaredVariablePattern(final, d, true)
endPattern(d)
handleListPattern(2, [, ])
endPattern(])
handleIdentifier(y, expression)
handleSendWithoutArguments(y, y, ;)
handlePatternAssignment(=)
handleExpressionStatement([, ;)
endBlockFunctionBody(1, {, })
endTopLevelMethod(void, null, })
endTopLevelDeclaration(})
endCompilationUnit(1, )