You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type 'EnumDeclarationImpl' is not a subtype of type 'ClassDeclaration' in type cast
#0 serializeConstructorDeclaration (package:dartdoc_json/src/constructor_declaration.dart:16:42)
#1 serializeMemberList (package:dartdoc_json/src/member_list.dart:18:14)
#2 serializeEnumDeclaration (package:dartdoc_json/src/enum_declaration.dart:30:16)
#3 serializeCompilationUnit (package:dartdoc_json/src/compilation_unit.dart:25:20)
The code assumes that the parent of the constructor is a class, but it is not the case. Recently, in dart, it was added more features to enums.
When the parser reaches a constructor on an enum, an error is thrown.
The following enum, for example, is enough to stop the parser from parsing.
The code assumes that the parent of the constructor is a class, but it is not the case. Recently, in dart, it was added more features to enums.
Additional resources:
The text was updated successfully, but these errors were encountered: