Index: pkg/compiler/lib/src/diagnostics/source_span.dart |
diff --git a/pkg/compiler/lib/src/diagnostics/source_span.dart b/pkg/compiler/lib/src/diagnostics/source_span.dart |
index 95c3c75480f987593fea1a1a19081c1bb0521c43..25bdc6cced374d5952671fcc876ad2cc0ee47754 100644 |
--- a/pkg/compiler/lib/src/diagnostics/source_span.dart |
+++ b/pkg/compiler/lib/src/diagnostics/source_span.dart |
@@ -20,7 +20,7 @@ class SourceSpan implements Spannable { |
factory SourceSpan.fromNode(Uri uri, Node node) { |
return new SourceSpan.fromTokens( |
- uri, node.getBeginToken(), node.getEndToken()); |
+ uri, node.getBeginToken(), node.getPrefixEndToken()); |
} |
factory SourceSpan.fromTokens(Uri uri, Token begin, Token end) { |