Files
sdk/pkg/front_end/parser_testcases/inline_class/inline_class.dart.expect
T
Johnni Winther 5b0def4a87 [parser][Augmentations] Remove support for macro class and import augment
These were part of the macros experiments which has been cancelled.

Change-Id: I14071bc8e86025f273a533c313a3194c8eae5190
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/495341
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2026-04-16 02:25:05 -07:00

76 lines
3.1 KiB
Plaintext

Problems reported:
parser/inline_class/inline_class:1:1: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
inline class Class {}
^^^^^^
parser/inline_class/inline_class:1:1: Expected ';' after this.
inline class Class {}
^^^^^^
parser/inline_class/inline_class:2:1: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
inline class Class = Object with Mixin;
^^^^^^
parser/inline_class/inline_class:2:1: Expected ';' after this.
inline class Class = Object with Mixin;
^^^^^^
beginCompilationUnit(inline)
beginMetadataStar(inline)
endMetadataStar(0)
beginTopLevelMember(inline)
beginFields(DeclarationKind.TopLevel, null, null, null, null, null, null, null, )
handleRecoverableError(MissingConstFinalVarOrType, inline, inline)
handleNoType()
handleIdentifier(inline, topLevelVariableDeclaration)
handleNoFieldInitializer(class)
handleRecoverableError(Message[Template(ExpectedAfterButGot), Expected ';' after this., null, {expected: ;}], inline, inline)
endTopLevelFields(null, null, null, null, null, null, null, 1, inline, ;)
endTopLevelDeclaration(;)
beginMetadataStar(class)
endMetadataStar(0)
beginClassOrMixinOrNamedMixinApplicationPrelude(class)
handleIdentifier(Class, classOrMixinDeclaration)
handleNoTypeVariables({)
beginClassDeclaration(class, null, null, null, null, null, null, null, Class)
handleNoPrimaryConstructor(DeclarationKind.Class, Class, null)
handleNoType(Class)
handleClassExtends(null, 1)
handleClassNoWithClause()
handleImplements(null, 0)
handleClassHeader(class, class, null)
beginClassOrMixinOrExtensionBody(DeclarationKind.Class, {)
endClassOrMixinOrExtensionBody(DeclarationKind.Class, 0, {, })
endClassDeclaration(class, })
endTopLevelDeclaration(})
beginMetadataStar(inline)
endMetadataStar(0)
beginTopLevelMember(inline)
beginFields(DeclarationKind.TopLevel, null, null, null, null, null, null, null, })
handleRecoverableError(MissingConstFinalVarOrType, inline, inline)
handleNoType(})
handleIdentifier(inline, topLevelVariableDeclaration)
handleNoFieldInitializer(class)
handleRecoverableError(Message[Template(ExpectedAfterButGot), Expected ';' after this., null, {expected: ;}], inline, inline)
endTopLevelFields(null, null, null, null, null, null, null, 1, inline, ;)
endTopLevelDeclaration(;)
beginMetadataStar(class)
endMetadataStar(0)
beginClassOrMixinOrNamedMixinApplicationPrelude(class)
handleIdentifier(Class, classOrMixinDeclaration)
handleNoTypeVariables(=)
beginNamedMixinApplication(class, null, null, null, null, null, null, null, Class)
handleIdentifier(Object, typeReference)
handleNoTypeArguments(with)
handleType(Object, null)
beginTypeList(Mixin)
handleIdentifier(Mixin, typeReference)
handleNoTypeArguments(;)
handleType(Mixin, null)
endTypeList(1)
handleNamedMixinApplicationWithClause(with)
endNamedMixinApplication(class, class, =, null, ;)
endTopLevelDeclaration(;)
endCompilationUnit(4, )