Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(606)

Unified Diff: pkg/analyzer_experimental/lib/src/generated/source.dart

Issue 24481002: New analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer_experimental/lib/src/generated/source.dart
diff --git a/pkg/analyzer_experimental/lib/src/generated/source.dart b/pkg/analyzer_experimental/lib/src/generated/source.dart
index 659f63174bb458ef489377dfdb4f98fce287e16f..8fbc1c468b81ae84125a067ad25e2cfd7ec43661 100644
--- a/pkg/analyzer_experimental/lib/src/generated/source.dart
+++ b/pkg/analyzer_experimental/lib/src/generated/source.dart
@@ -441,24 +441,15 @@ class UriKind extends Enum<UriKind> {
static final UriKind FILE_URI = new UriKind('FILE_URI', 1, 0x66);
/**
- * A 'package:' URI.
+ * A 'package:' URI referencing source package itself.
*/
- static final UriKind PACKAGE_URI = new UriKind('PACKAGE_URI', 2, 0x70);
- static final List<UriKind> values = [DART_URI, FILE_URI, PACKAGE_URI];
+ static final UriKind PACKAGE_SELF_URI = new UriKind('PACKAGE_SELF_URI', 2, 0x73);
/**
- * The single character encoding used to identify this kind of URI.
- */
- int encoding = 0;
-
- /**
- * Initialize a newly created URI kind to have the given encoding.
- *
- * @param encoding the single character encoding used to identify this kind of URI.
+ * A 'package:' URI.
*/
- UriKind(String name, int ordinal, int encoding) : super(name, ordinal) {
- this.encoding = encoding;
- }
+ static final UriKind PACKAGE_URI = new UriKind('PACKAGE_URI', 3, 0x70);
+ static final List<UriKind> values = [DART_URI, FILE_URI, PACKAGE_SELF_URI, PACKAGE_URI];
/**
* Return the URI kind represented by the given encoding, or `null` if there is no kind with
@@ -473,6 +464,8 @@ class UriKind extends Enum<UriKind> {
return DART_URI;
} else if (encoding == 0x66) {
return FILE_URI;
+ } else if (encoding == 0x73) {
+ return PACKAGE_SELF_URI;
} else if (encoding == 0x70) {
return PACKAGE_URI;
}
@@ -480,6 +473,20 @@ class UriKind extends Enum<UriKind> {
}
return null;
}
+
+ /**
+ * The single character encoding used to identify this kind of URI.
+ */
+ int encoding = 0;
+
+ /**
+ * Initialize a newly created URI kind to have the given encoding.
+ *
+ * @param encoding the single character encoding used to identify this kind of URI.
+ */
+ UriKind(String name, int ordinal, int encoding) : super(name, ordinal) {
+ this.encoding = encoding;
+ }
}
/**
* A source range defines an [Element]'s source coordinates relative to its [Source].
« no previous file with comments | « pkg/analyzer_experimental/lib/src/generated/sdk_io.dart ('k') | pkg/analyzer_experimental/lib/src/generated/source_io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698