@@ -155,47 +155,6 @@ abstract class SourceFactory {
155155 Source ? resolveUri (Source ? containingSource, String ? containedUri);
156156}
157157
158- /// The enumeration `SourceKind` defines the different kinds of sources that are
159- /// known to the analysis engine.
160- class SourceKind implements Comparable <SourceKind > {
161- /// A source containing HTML. The HTML might or might not contain Dart
162- /// scripts.
163- static const SourceKind HTML = SourceKind ('HTML' , 0 );
164-
165- /// A Dart compilation unit that is not a part of another library. Libraries
166- /// might or might not contain any directives, including a library directive.
167- static const SourceKind LIBRARY = SourceKind ('LIBRARY' , 1 );
168-
169- /// A Dart compilation unit that is part of another library. Parts contain a
170- /// part-of directive.
171- static const SourceKind PART = SourceKind ('PART' , 2 );
172-
173- /// An unknown kind of source. Used both when it is not possible to identify
174- /// the kind of a source and also when the kind of a source is not known
175- /// without performing a computation and the client does not want to spend the
176- /// time to identify the kind.
177- static const SourceKind UNKNOWN = SourceKind ('UNKNOWN' , 3 );
178-
179- static const List <SourceKind > values = [HTML , LIBRARY , PART , UNKNOWN ];
180-
181- /// The name of this source kind.
182- final String name;
183-
184- /// The ordinal value of the source kind.
185- final int ordinal;
186-
187- const SourceKind (this .name, this .ordinal);
188-
189- @override
190- int get hashCode => ordinal;
191-
192- @override
193- int compareTo (SourceKind other) => ordinal - other.ordinal;
194-
195- @override
196- String toString () => name;
197- }
198-
199158/// The abstract class `UriResolver` defines the behavior of objects that are
200159/// used to resolve URI's for a source factory. Subclasses of this class are
201160/// expected to resolve a single scheme of absolute URI.
0 commit comments