| 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].
|
|
|