| Index: pkg/compiler/lib/src/elements/modelx.dart
|
| diff --git a/pkg/compiler/lib/src/elements/modelx.dart b/pkg/compiler/lib/src/elements/modelx.dart
|
| index e1fd27102310ec9002e5d4ff473bbbf8dd42fda3..248a9ef96606a9833d5128969d8c265cd8d6ab90 100644
|
| --- a/pkg/compiler/lib/src/elements/modelx.dart
|
| +++ b/pkg/compiler/lib/src/elements/modelx.dart
|
| @@ -3193,6 +3193,8 @@ abstract class MetadataAnnotationX implements MetadataAnnotation {
|
| */
|
| Token get beginToken;
|
|
|
| + Token get endToken;
|
| +
|
| MetadataAnnotationX([this.resolutionState = STATE_NOT_STARTED]);
|
|
|
| MetadataAnnotation ensureResolved(Resolution resolution) {
|
| @@ -3208,6 +3210,11 @@ abstract class MetadataAnnotationX implements MetadataAnnotation {
|
|
|
| Node parseNode(ParsingContext parsing);
|
|
|
| + SourceSpan get sourcePosition {
|
| + Uri uri = annotatedElement.compilationUnit.script.resourceUri;
|
| + return new SourceSpan.fromTokens(uri, beginToken, endToken);
|
| + }
|
| +
|
| String toString() => 'MetadataAnnotation($constant, $resolutionState)';
|
| }
|
|
|
|
|