| Problems reported: |
| |
| parser/error_recovery/issue_45251_list_const:3:38: A list literal can't be prefixed by 'List'. |
| final List<Undefined> foo1 = const List<List<int>>[]; |
| ^^^^ |
| |
| parser/error_recovery/issue_45251_list_const:9:38: A list literal can't be prefixed by 'List'. |
| final List<Undefined> foo3 = const List[]; |
| ^^^^ |
| |
| parser/error_recovery/issue_45251_list_const:18:38: A list literal can't be prefixed by 'List'. |
| final List<Undefined> foo6 = const List<List<int>>[null]; |
| ^^^^ |
| |
| parser/error_recovery/issue_45251_list_const:22:38: A list literal can't be prefixed by 'List'. |
| final List<Undefined> foo7 = const List[null]; |
| ^^^^ |
| |
| beginCompilationUnit(class) |
| beginMetadataStar(class) |
| endMetadataStar(0) |
| beginClassOrMixinOrNamedMixinApplicationPrelude(class) |
| handleIdentifier(F, classOrMixinDeclaration) |
| handleNoTypeVariables({) |
| beginClassDeclaration(class, null, null, null, F) |
| handleNoType(F) |
| handleClassExtends(null, 1) |
| handleClassNoWithClause() |
| handleImplements(null, 0) |
| handleClassHeader(class, class, null) |
| beginClassOrMixinOrExtensionBody(DeclarationKind.Class, {) |
| beginMetadataStar(final) |
| endMetadataStar(0) |
| beginMember() |
| beginFields(DeclarationKind.Class, null, null, null, null, null, final, {) |
| handleIdentifier(List, typeReference) |
| beginTypeArguments(<) |
| handleIdentifier(Undefined, typeReference) |
| handleNoTypeArguments(>) |
| handleType(Undefined, null) |
| endTypeArguments(1, <, >) |
| handleType(List, null) |
| handleIdentifier(foo1, fieldDeclaration) |
| beginFieldInitializer(=) |
| handleRecoverableError(Message[LiteralWithClass, A list literal can't be prefixed by 'List'., Try removing 'List', {string: list, lexeme: List}], List, List) |
| beginConstLiteral(<) |
| beginTypeArguments(<) |
| handleIdentifier(List, typeReference) |
| beginTypeArguments(<) |
| handleIdentifier(int, typeReference) |
| handleNoTypeArguments(>) |
| handleType(int, null) |
| endTypeArguments(1, <, >) |
| handleType(List, null) |
| endTypeArguments(1, <, >) |
| handleLiteralList(0, [, const, ]) |
| endConstLiteral(;) |
| endFieldInitializer(=, ;) |
| endClassFields(null, null, null, null, null, final, 1, final, ;) |
| endMember() |
| beginMetadataStar(final) |
| endMetadataStar(0) |
| beginMember() |
| beginFields(DeclarationKind.Class, null, null, null, null, null, final, ;) |
| handleIdentifier(List, typeReference) |
| beginTypeArguments(<) |
| handleIdentifier(Undefined, typeReference) |
| handleNoTypeArguments(>) |
| handleType(Undefined, null) |
| endTypeArguments(1, <, >) |
| handleType(List, null) |
| handleIdentifier(foo2, fieldDeclaration) |
| beginFieldInitializer(=) |
| beginConstLiteral(<) |
| beginTypeArguments(<) |
| handleIdentifier(List, typeReference) |
| beginTypeArguments(<) |
| handleIdentifier(int, typeReference) |
| handleNoTypeArguments(>) |
| handleType(int, null) |
| endTypeArguments(1, <, >) |
| handleType(List, null) |
| endTypeArguments(1, <, >) |
| handleLiteralList(0, [, const, ]) |
| endConstLiteral(;) |
| endFieldInitializer(=, ;) |
| endClassFields(null, null, null, null, null, final, 1, final, ;) |
| endMember() |
| beginMetadataStar(final) |
| endMetadataStar(0) |
| beginMember() |
| beginFields(DeclarationKind.Class, null, null, null, null, null, final, ;) |
| handleIdentifier(List, typeReference) |
| beginTypeArguments(<) |
| handleIdentifier(Undefined, typeReference) |
| handleNoTypeArguments(>) |
| handleType(Undefined, null) |
| endTypeArguments(1, <, >) |
| handleType(List, null) |
| handleIdentifier(foo3, fieldDeclaration) |
| beginFieldInitializer(=) |
| handleRecoverableError(Message[LiteralWithClass, A list literal can't be prefixed by 'List'., Try removing 'List', {string: list, lexeme: List}], List, List) |
| beginConstLiteral([]) |
| handleNoTypeArguments([]) |
| handleLiteralList(0, [, const, ]) |
| endConstLiteral(;) |
| endFieldInitializer(=, ;) |
| endClassFields(null, null, null, null, null, final, 1, final, ;) |
| endMember() |
| beginMetadataStar(final) |
| endMetadataStar(0) |
| beginMember() |
| beginFields(DeclarationKind.Class, null, null, null, null, null, final, ;) |
| handleIdentifier(List, typeReference) |
| beginTypeArguments(<) |
| handleIdentifier(Undefined, typeReference) |
| handleNoTypeArguments(>) |
| handleType(Undefined, null) |
| endTypeArguments(1, <, >) |
| handleType(List, null) |
| handleIdentifier(foo4, fieldDeclaration) |
| beginFieldInitializer(=) |
| beginConstExpression(const) |
| handleIdentifier(List, constructorReference) |
| beginConstructorReference(List) |
| beginTypeArguments(<) |
| handleIdentifier(List, typeReference) |
| beginTypeArguments(<) |
| handleIdentifier(int, typeReference) |
| handleNoTypeArguments(>) |
| handleType(int, null) |
| endTypeArguments(1, <, >) |
| handleType(List, null) |
| endTypeArguments(1, <, >) |
| handleNoConstructorReferenceContinuationAfterTypeArguments(() |
| endConstructorReference(List, null, (, ConstructorReferenceContext.Const) |
| beginArguments(() |
| endArguments(0, (, )) |
| endConstExpression(const) |
| endFieldInitializer(=, ;) |
| endClassFields(null, null, null, null, null, final, 1, final, ;) |
| endMember() |
| beginMetadataStar(final) |
| endMetadataStar(0) |
| beginMember() |
| beginFields(DeclarationKind.Class, null, null, null, null, null, final, ;) |
| handleIdentifier(List, typeReference) |
| beginTypeArguments(<) |
| handleIdentifier(Undefined, typeReference) |
| handleNoTypeArguments(>) |
| handleType(Undefined, null) |
| endTypeArguments(1, <, >) |
| handleType(List, null) |
| handleIdentifier(foo5, fieldDeclaration) |
| beginFieldInitializer(=) |
| beginConstExpression(const) |
| handleIdentifier(List, constructorReference) |
| beginConstructorReference(List) |
| handleNoTypeArguments(() |
| handleNoConstructorReferenceContinuationAfterTypeArguments(() |
| endConstructorReference(List, null, (, ConstructorReferenceContext.Const) |
| beginArguments(() |
| endArguments(0, (, )) |
| endConstExpression(const) |
| endFieldInitializer(=, ;) |
| endClassFields(null, null, null, null, null, final, 1, final, ;) |
| endMember() |
| beginMetadataStar(final) |
| endMetadataStar(0) |
| beginMember() |
| beginFields(DeclarationKind.Class, null, null, null, null, null, final, ;) |
| handleIdentifier(List, typeReference) |
| beginTypeArguments(<) |
| handleIdentifier(Undefined, typeReference) |
| handleNoTypeArguments(>) |
| handleType(Undefined, null) |
| endTypeArguments(1, <, >) |
| handleType(List, null) |
| handleIdentifier(foo6, fieldDeclaration) |
| beginFieldInitializer(=) |
| handleRecoverableError(Message[LiteralWithClass, A list literal can't be prefixed by 'List'., Try removing 'List', {string: list, lexeme: List}], List, List) |
| beginConstLiteral(<) |
| beginTypeArguments(<) |
| handleIdentifier(List, typeReference) |
| beginTypeArguments(<) |
| handleIdentifier(int, typeReference) |
| handleNoTypeArguments(>) |
| handleType(int, null) |
| endTypeArguments(1, <, >) |
| handleType(List, null) |
| endTypeArguments(1, <, >) |
| handleLiteralNull(null) |
| handleLiteralList(1, [, const, ]) |
| endConstLiteral(;) |
| endFieldInitializer(=, ;) |
| endClassFields(null, null, null, null, null, final, 1, final, ;) |
| endMember() |
| beginMetadataStar(final) |
| endMetadataStar(0) |
| beginMember() |
| beginFields(DeclarationKind.Class, null, null, null, null, null, final, ;) |
| handleIdentifier(List, typeReference) |
| beginTypeArguments(<) |
| handleIdentifier(Undefined, typeReference) |
| handleNoTypeArguments(>) |
| handleType(Undefined, null) |
| endTypeArguments(1, <, >) |
| handleType(List, null) |
| handleIdentifier(foo7, fieldDeclaration) |
| beginFieldInitializer(=) |
| handleRecoverableError(Message[LiteralWithClass, A list literal can't be prefixed by 'List'., Try removing 'List', {string: list, lexeme: List}], List, List) |
| beginConstLiteral([) |
| handleNoTypeArguments([) |
| handleLiteralNull(null) |
| handleLiteralList(1, [, const, ]) |
| endConstLiteral(;) |
| endFieldInitializer(=, ;) |
| endClassFields(null, null, null, null, null, final, 1, final, ;) |
| endMember() |
| beginMetadataStar(final) |
| endMetadataStar(0) |
| beginMember() |
| beginFields(DeclarationKind.Class, null, null, null, null, null, final, ;) |
| handleIdentifier(List, typeReference) |
| beginTypeArguments(<) |
| handleIdentifier(Undefined, typeReference) |
| handleNoTypeArguments(>) |
| handleType(Undefined, null) |
| endTypeArguments(1, <, >) |
| handleType(List, null) |
| handleIdentifier(foo8, fieldDeclaration) |
| beginFieldInitializer(=) |
| beginConstLiteral(<) |
| beginTypeArguments(<) |
| handleIdentifier(List, typeReference) |
| beginTypeArguments(<) |
| handleIdentifier(int, typeReference) |
| handleNoTypeArguments(>) |
| handleType(int, null) |
| endTypeArguments(1, <, >) |
| handleType(List, null) |
| endTypeArguments(1, <, >) |
| handleLiteralNull(null) |
| handleLiteralList(1, [, const, ]) |
| endConstLiteral(;) |
| endFieldInitializer(=, ;) |
| endClassFields(null, null, null, null, null, final, 1, final, ;) |
| endMember() |
| beginMetadataStar(final) |
| endMetadataStar(0) |
| beginMember() |
| beginFields(DeclarationKind.Class, null, null, null, null, null, final, ;) |
| handleIdentifier(List, typeReference) |
| beginTypeArguments(<) |
| handleIdentifier(Undefined, typeReference) |
| handleNoTypeArguments(>) |
| handleType(Undefined, null) |
| endTypeArguments(1, <, >) |
| handleType(List, null) |
| handleIdentifier(foo9, fieldDeclaration) |
| beginFieldInitializer(=) |
| beginConstLiteral([) |
| handleNoTypeArguments([) |
| handleLiteralNull(null) |
| handleLiteralList(1, [, const, ]) |
| endConstLiteral(;) |
| endFieldInitializer(=, ;) |
| endClassFields(null, null, null, null, null, final, 1, final, ;) |
| endMember() |
| endClassOrMixinOrExtensionBody(DeclarationKind.Class, 9, {, }) |
| endClassDeclaration(class, }) |
| endTopLevelDeclaration() |
| endCompilationUnit(1, ) |