Index: pkg/analyzer/lib/dart/ast/comment_type.dart |
diff --git a/pkg/analyzer/lib/dart/ast/comment_type.dart b/pkg/analyzer/lib/dart/ast/comment_type.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fb9c4da349768e6320515841ac7c9b2eb90030cb |
--- /dev/null |
+++ b/pkg/analyzer/lib/dart/ast/comment_type.dart |
@@ -0,0 +1,36 @@ |
+// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+/** |
+ * 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; |
+} |