| Index: dart/lib/compiler/implementation/scanner/scanner_task.dart
|
| diff --git a/dart/lib/compiler/implementation/scanner/scanner_task.dart b/dart/lib/compiler/implementation/scanner/scanner_task.dart
|
| index af1888549f87d72e3ebfc3c29a1a883aa641a56e..f9a9f3af21127bd0dad6631514947669dbe346df 100644
|
| --- a/dart/lib/compiler/implementation/scanner/scanner_task.dart
|
| +++ b/dart/lib/compiler/implementation/scanner/scanner_task.dart
|
| @@ -112,20 +112,7 @@ class ScannerTask extends CompilerTask {
|
|
|
| void scanElements(CompilationUnitElement compilationUnit) {
|
| Script script = compilationUnit.script;
|
| - Token tokens;
|
| - try {
|
| - tokens = new StringScanner(script.text).tokenize();
|
| - } on MalformedInputException catch (ex) {
|
| - Token token;
|
| - var message;
|
| - if (ex.position is num) {
|
| - // TODO(ahe): Always use tokens in MalformedInputException.
|
| - token = new Token(EOF_INFO, ex.position);
|
| - } else {
|
| - token = ex.position;
|
| - }
|
| - compiler.cancel(ex.message, token: token);
|
| - }
|
| + Token tokens = new StringScanner(script.text).tokenize();
|
| compiler.dietParser.dietParse(compilationUnit, tokens);
|
| }
|
|
|
|
|