Index: pkg/analyzer/lib/src/generated/parser.dart |
diff --git a/pkg/analyzer/lib/src/generated/parser.dart b/pkg/analyzer/lib/src/generated/parser.dart |
index 342f5a3de8f961f75d94ba73a7a0a5276a349de5..4c93ace3bf6dd2f15da19980c72056f0d75fca01 100644 |
--- a/pkg/analyzer/lib/src/generated/parser.dart |
+++ b/pkg/analyzer/lib/src/generated/parser.dart |
@@ -3837,7 +3837,7 @@ class Parser { |
} |
try { |
BooleanErrorListener listener = new BooleanErrorListener(); |
- Scanner scanner = new Scanner(null, new SubSequenceReader(new CharSequence(referenceSource), sourceOffset), listener); |
+ Scanner scanner = new Scanner(null, new SubSequenceReader(referenceSource, sourceOffset), listener); |
scanner.setSourceStart(1, 1); |
Token firstToken = scanner.tokenize(); |
if (listener.errorReported) { |