Index: pkg/analyzer/lib/src/dart/ast/ast.dart |
diff --git a/pkg/analyzer/lib/src/dart/ast/ast.dart b/pkg/analyzer/lib/src/dart/ast/ast.dart |
index 4d388d218c492ab67c070c3d67224a5976100891..3c53a7bd518a5704a036c5747ade04c32984f71d 100644 |
--- a/pkg/analyzer/lib/src/dart/ast/ast.dart |
+++ b/pkg/analyzer/lib/src/dart/ast/ast.dart |
@@ -7,6 +7,7 @@ library analyzer.src.dart.ast.ast; |
import 'dart:collection'; |
import 'package:analyzer/dart/ast/ast.dart'; |
+import 'package:analyzer/dart/ast/comment_type.dart'; |
import 'package:analyzer/dart/ast/syntactic_entity.dart'; |
import 'package:analyzer/dart/ast/token.dart'; |
import 'package:analyzer/dart/element/element.dart'; |
@@ -22,6 +23,9 @@ import 'package:analyzer/src/generated/parser.dart'; |
import 'package:analyzer/src/generated/source.dart' show LineInfo, Source; |
import 'package:analyzer/src/generated/utilities_dart.dart'; |
+export 'package:analyzer/dart/ast/comment_type.dart' show CommentType; |
+export 'package:analyzer/src/dart/ast/uri_validation_code.dart' show UriValidationCodeImpl; |
+ |
/** |
* Two or more string literals that are implicitly concatenated because of being |
* adjacent (separated only by whitespace). |
@@ -2336,39 +2340,6 @@ class CommentReferenceImpl extends AstNodeImpl implements CommentReference { |
} |
/** |
- * The possible types of comments that are recognized by the parser. |
- */ |
-class CommentType { |
- /** |
- * A block comment. |
- */ |
- static const CommentType BLOCK = const CommentType('BLOCK'); |
- |
- /** |
- * A documentation comment. |
- */ |
- static const CommentType DOCUMENTATION = const CommentType('DOCUMENTATION'); |
- |
- /** |
- * An end-of-line comment. |
- */ |
- static const CommentType END_OF_LINE = const CommentType('END_OF_LINE'); |
- |
- /** |
- * The name of the comment type. |
- */ |
- final String name; |
- |
- /** |
- * Initialize a newly created comment type to have the given [name]. |
- */ |
- const CommentType(this.name); |
- |
- @override |
- String toString() => name; |
-} |
- |
-/** |
* A compilation unit. |
* |
* While the grammar restricts the order of the directives and declarations |
@@ -10708,33 +10679,6 @@ abstract class UriBasedDirectiveImpl extends DirectiveImpl |
} |
/** |
- * Validation codes returned by [UriBasedDirective.validate]. |
- */ |
-class UriValidationCodeImpl implements UriValidationCode { |
- static const UriValidationCode INVALID_URI = |
- const UriValidationCodeImpl('INVALID_URI'); |
- |
- static const UriValidationCode URI_WITH_INTERPOLATION = |
- const UriValidationCodeImpl('URI_WITH_INTERPOLATION'); |
- |
- static const UriValidationCode URI_WITH_DART_EXT_SCHEME = |
- const UriValidationCodeImpl('URI_WITH_DART_EXT_SCHEME'); |
- |
- /** |
- * The name of the validation code. |
- */ |
- final String name; |
- |
- /** |
- * Initialize a newly created validation code to have the given [name]. |
- */ |
- const UriValidationCodeImpl(this.name); |
- |
- @override |
- String toString() => name; |
-} |
- |
-/** |
* An identifier that has an initial value associated with it. Instances of this |
* class are always children of the class [VariableDeclarationList]. |
* |