Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2157)

Unified Diff: sdk/lib/_internal/compiler/implementation/scanner/scanner_task.dart

Issue 11726005: Dartdoc comments retrieved as metadata through dart2js mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.dart ('k') | sdk/lib/_internal/dartdoc/lib/dartdoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698