|  | Problems reported: | 
|  |  | 
|  | parser/patterns/constant_identifier_namedWhen:3:10: A pattern can't refer to an identifier named 'when'. | 
|  | case when: | 
|  | ^^^^ | 
|  |  | 
|  | beginCompilationUnit(void) | 
|  | beginMetadataStar(void) | 
|  | endMetadataStar(0) | 
|  | beginTopLevelMember(void) | 
|  | beginTopLevelMethod(, null, null) | 
|  | handleVoidKeyword(void) | 
|  | handleIdentifier(f, topLevelFunctionDeclaration) | 
|  | handleNoTypeVariables(() | 
|  | beginFormalParameters((, MemberKind.TopLevelMethod) | 
|  | beginMetadataStar(x) | 
|  | endMetadataStar(0) | 
|  | beginFormalParameter(x, MemberKind.TopLevelMethod, null, null, null) | 
|  | handleNoType(() | 
|  | handleIdentifier(x, formalParameterDeclaration) | 
|  | handleFormalParameterWithoutValue()) | 
|  | endFormalParameter(null, null, null, x, null, null, FormalParameterKind.requiredPositional, MemberKind.TopLevelMethod) | 
|  | endFormalParameters(1, (, ), MemberKind.TopLevelMethod) | 
|  | handleAsyncModifier(null, null) | 
|  | beginBlockFunctionBody({) | 
|  | beginSwitchStatement(switch) | 
|  | handleIdentifier(x, expression) | 
|  | handleNoTypeArguments()) | 
|  | handleNoArguments()) | 
|  | handleSend(x, )) | 
|  | handleParenthesizedCondition((, null, null) | 
|  | beginSwitchBlock({) | 
|  | beginCaseExpression(case) | 
|  | beginPattern(case) | 
|  | handleRecoverableError(Message[IllegalPatternIdentifierName, A pattern can't refer to an identifier named 'when'., Match the identifier using '==, {lexeme: when}], when, when) | 
|  | beginConstantPattern(null) | 
|  | handleIdentifier(when, expression) | 
|  | handleNoTypeArguments(:) | 
|  | handleNoArguments(:) | 
|  | handleSend(when, :) | 
|  | endConstantPattern(null) | 
|  | endPattern(when) | 
|  | handleSwitchCaseNoWhenClause(when) | 
|  | endCaseExpression(case, null, :) | 
|  | beginSwitchCase(0, 1, case) | 
|  | endSwitchCase(0, 1, null, null, 0, case, :) | 
|  | endSwitchBlock(1, {, }) | 
|  | endSwitchStatement(switch, }) | 
|  | endBlockFunctionBody(1, {, }) | 
|  | endTopLevelMethod(void, null, }) | 
|  | endTopLevelDeclaration(}) | 
|  | endCompilationUnit(1, ) |