| Index: sdk/lib/_internal/compiler/implementation/scanner/scanner_task.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/scanner/scanner_task.dart b/sdk/lib/_internal/compiler/implementation/scanner/scanner_task.dart
|
| index c158df6724dd26685f843dbf08118414c3e215ec..a1f4a9113413837eb878573bd6a0eb7dc3faf8f4 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/scanner/scanner_task.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/scanner/scanner_task.dart
|
| @@ -28,7 +28,11 @@ class ScannerTask extends CompilerTask {
|
|
|
| void scanElements(CompilationUnitElement compilationUnit) {
|
| Script script = compilationUnit.script;
|
| - Token tokens = new StringScanner(script.text).tokenize();
|
| + Token tokens = new StringScanner(script.text,
|
| + includeComments: compiler.preserveComments).tokenize();
|
| + if (compiler.preserveComments) {
|
| + tokens = compiler.processAndStripComments(tokens);
|
| + }
|
| compiler.dietParser.dietParse(compilationUnit, tokens);
|
| }
|
| }
|
|
|