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

Unified Diff: pkg/compiler/lib/src/parser/diet_parser_task.dart

Issue 1517013003: Revert "dart2js: add support for configuration-specific imports." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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: pkg/compiler/lib/src/parser/diet_parser_task.dart
diff --git a/pkg/compiler/lib/src/parser/diet_parser_task.dart b/pkg/compiler/lib/src/parser/diet_parser_task.dart
index 9afc8d4dcb90e6f532ce029a5d19aaad3aaa18f7..10a0a9f7df255b9414b206ddac8b7575f63d5763 100644
--- a/pkg/compiler/lib/src/parser/diet_parser_task.dart
+++ b/pkg/compiler/lib/src/parser/diet_parser_task.dart
@@ -23,12 +23,7 @@ import 'partial_parser.dart' show
PartialParser;
class DietParserTask extends CompilerTask {
- final bool _enableConditionalDirectives;
-
- DietParserTask(Compiler compiler, {bool enableConditionalDirectives})
- : this._enableConditionalDirectives = enableConditionalDirectives,
- super(compiler);
-
+ DietParserTask(Compiler compiler) : super(compiler);
final String name = 'Diet Parser';
dietParse(CompilationUnitElement compilationUnit, Token tokens) {
@@ -39,8 +34,7 @@ class DietParserTask extends CompilerTask {
compilationUnit.library));
ElementListener listener = new ElementListener(
scannerOptions, compiler.reporter, compilationUnit, idGenerator);
- PartialParser parser = new PartialParser(
- listener, enableConditionalDirectives: _enableConditionalDirectives);
+ PartialParser parser = new PartialParser(listener);
try {
parser.parseUnit(tokens);
} on ParserError catch(_) {
« no previous file with comments | « pkg/compiler/lib/src/parser/class_element_parser.dart ('k') | pkg/compiler/lib/src/parser/element_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698