@@ -961,81 +961,85 @@ class ElementKind implements Comparable<ElementKind> {
961961
962962 static const ElementKind CLASS = ElementKind ('CLASS' , 1 , "class" );
963963
964+ static const ElementKind CLASS_AUGMENTATION =
965+ ElementKind ('CLASS_AUGMENTATION' , 2 , "class augmentation" );
966+
964967 static const ElementKind COMPILATION_UNIT =
965- ElementKind ('COMPILATION_UNIT' , 2 , "compilation unit" );
968+ ElementKind ('COMPILATION_UNIT' , 3 , "compilation unit" );
966969
967970 static const ElementKind CONSTRUCTOR =
968- ElementKind ('CONSTRUCTOR' , 3 , "constructor" );
971+ ElementKind ('CONSTRUCTOR' , 4 , "constructor" );
969972
970- static const ElementKind DYNAMIC = ElementKind ('DYNAMIC' , 4 , "<dynamic>" );
973+ static const ElementKind DYNAMIC = ElementKind ('DYNAMIC' , 5 , "<dynamic>" );
971974
972- static const ElementKind ENUM = ElementKind ('ENUM' , 5 , "enum" );
975+ static const ElementKind ENUM = ElementKind ('ENUM' , 6 , "enum" );
973976
974- static const ElementKind ERROR = ElementKind ('ERROR' , 6 , "<error>" );
977+ static const ElementKind ERROR = ElementKind ('ERROR' , 7 , "<error>" );
975978
976979 static const ElementKind EXPORT =
977- ElementKind ('EXPORT' , 7 , "export directive" );
980+ ElementKind ('EXPORT' , 8 , "export directive" );
978981
979- static const ElementKind EXTENSION = ElementKind ('EXTENSION' , 8 , "extension" );
982+ static const ElementKind EXTENSION = ElementKind ('EXTENSION' , 9 , "extension" );
980983
981- static const ElementKind FIELD = ElementKind ('FIELD' , 9 , "field" );
984+ static const ElementKind FIELD = ElementKind ('FIELD' , 10 , "field" );
982985
983- static const ElementKind FUNCTION = ElementKind ('FUNCTION' , 10 , "function" );
986+ static const ElementKind FUNCTION = ElementKind ('FUNCTION' , 11 , "function" );
984987
985988 static const ElementKind GENERIC_FUNCTION_TYPE =
986- ElementKind ('GENERIC_FUNCTION_TYPE' , 11 , 'generic function type' );
989+ ElementKind ('GENERIC_FUNCTION_TYPE' , 12 , 'generic function type' );
987990
988- static const ElementKind GETTER = ElementKind ('GETTER' , 12 , "getter" );
991+ static const ElementKind GETTER = ElementKind ('GETTER' , 13 , "getter" );
989992
990993 static const ElementKind IMPORT =
991- ElementKind ('IMPORT' , 13 , "import directive" );
994+ ElementKind ('IMPORT' , 14 , "import directive" );
992995
993996 static const ElementKind INLINE_CLASS =
994- ElementKind ('INLINE_CLASS' , 14 , "inline class" );
997+ ElementKind ('INLINE_CLASS' , 15 , "inline class" );
995998
996- static const ElementKind LABEL = ElementKind ('LABEL' , 15 , "label" );
999+ static const ElementKind LABEL = ElementKind ('LABEL' , 16 , "label" );
9971000
998- static const ElementKind LIBRARY = ElementKind ('LIBRARY' , 16 , "library" );
1001+ static const ElementKind LIBRARY = ElementKind ('LIBRARY' , 17 , "library" );
9991002
10001003 static const ElementKind LIBRARY_AUGMENTATION =
1001- ElementKind ('LIBRARY_AUGMENTATION' , 17 , "library augmentation" );
1004+ ElementKind ('LIBRARY_AUGMENTATION' , 18 , "library augmentation" );
10021005
10031006 static const ElementKind LOCAL_VARIABLE =
1004- ElementKind ('LOCAL_VARIABLE' , 18 , "local variable" );
1007+ ElementKind ('LOCAL_VARIABLE' , 19 , "local variable" );
10051008
1006- static const ElementKind METHOD = ElementKind ('METHOD' , 19 , "method" );
1009+ static const ElementKind METHOD = ElementKind ('METHOD' , 20 , "method" );
10071010
1008- static const ElementKind NAME = ElementKind ('NAME' , 20 , "<name>" );
1011+ static const ElementKind NAME = ElementKind ('NAME' , 21 , "<name>" );
10091012
1010- static const ElementKind NEVER = ElementKind ('NEVER' , 21 , "<never>" );
1013+ static const ElementKind NEVER = ElementKind ('NEVER' , 22 , "<never>" );
10111014
10121015 static const ElementKind PARAMETER =
1013- ElementKind ('PARAMETER' , 22 , "parameter" );
1016+ ElementKind ('PARAMETER' , 23 , "parameter" );
10141017
1015- static const ElementKind PART = ElementKind ('PART' , 23 , "part" );
1018+ static const ElementKind PART = ElementKind ('PART' , 24 , "part" );
10161019
1017- static const ElementKind PREFIX = ElementKind ('PREFIX' , 24 , "import prefix" );
1020+ static const ElementKind PREFIX = ElementKind ('PREFIX' , 25 , "import prefix" );
10181021
1019- static const ElementKind RECORD = ElementKind ('RECORD' , 25 , "record" );
1022+ static const ElementKind RECORD = ElementKind ('RECORD' , 26 , "record" );
10201023
1021- static const ElementKind SETTER = ElementKind ('SETTER' , 26 , "setter" );
1024+ static const ElementKind SETTER = ElementKind ('SETTER' , 27 , "setter" );
10221025
10231026 static const ElementKind TOP_LEVEL_VARIABLE =
1024- ElementKind ('TOP_LEVEL_VARIABLE' , 27 , "top level variable" );
1027+ ElementKind ('TOP_LEVEL_VARIABLE' , 28 , "top level variable" );
10251028
10261029 static const ElementKind FUNCTION_TYPE_ALIAS =
1027- ElementKind ('FUNCTION_TYPE_ALIAS' , 28 , "function type alias" );
1030+ ElementKind ('FUNCTION_TYPE_ALIAS' , 29 , "function type alias" );
10281031
10291032 static const ElementKind TYPE_PARAMETER =
1030- ElementKind ('TYPE_PARAMETER' , 29 , "type parameter" );
1033+ ElementKind ('TYPE_PARAMETER' , 30 , "type parameter" );
10311034
10321035 static const ElementKind TYPE_ALIAS =
1033- ElementKind ('TYPE_ALIAS' , 30 , "type alias" );
1036+ ElementKind ('TYPE_ALIAS' , 31 , "type alias" );
10341037
1035- static const ElementKind UNIVERSE = ElementKind ('UNIVERSE' , 31 , "<universe>" );
1038+ static const ElementKind UNIVERSE = ElementKind ('UNIVERSE' , 32 , "<universe>" );
10361039
10371040 static const List <ElementKind > values = [
10381041 CLASS ,
1042+ CLASS_AUGMENTATION ,
10391043 COMPILATION_UNIT ,
10401044 CONSTRUCTOR ,
10411045 DYNAMIC ,
@@ -1124,6 +1128,8 @@ abstract class ElementLocation {
11241128abstract class ElementVisitor <R > {
11251129 R ? visitAugmentationImportElement (AugmentationImportElement element);
11261130
1131+ R ? visitClassAugmentationElement (ClassAugmentationElement element);
1132+
11271133 R ? visitClassElement (ClassElement element);
11281134
11291135 R ? visitCompilationUnitElement (CompilationUnitElement element);
@@ -2188,7 +2194,14 @@ abstract class MultiplyInheritedExecutableElement implements ExecutableElement {
21882194/// Clients may not extend, implement or mix-in this class.
21892195@experimental
21902196abstract class NamedInstanceElement
2191- implements NamedInstanceOrAugmentationElement , InstanceElement {}
2197+ implements NamedInstanceOrAugmentationElement , InstanceElement {
2198+ /// Create the [DartType] for this element with the given [typeArguments]
2199+ /// and [nullabilitySuffix] .
2200+ DartType instantiate ({
2201+ required List <DartType > typeArguments,
2202+ required NullabilitySuffix nullabilitySuffix,
2203+ });
2204+ }
21922205
21932206/// [InstanceOrAugmentationElement] with a name.
21942207///
@@ -2203,13 +2216,6 @@ abstract class NamedInstanceOrAugmentationElement
22032216
22042217 @override
22052218 String get name;
2206-
2207- /// Create the [DartType] for this element with the given [typeArguments]
2208- /// and [nullabilitySuffix] .
2209- DartType instantiate ({
2210- required List <DartType > typeArguments,
2211- required NullabilitySuffix nullabilitySuffix,
2212- });
22132219}
22142220
22152221/// An object that controls how namespaces are combined.
0 commit comments