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

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

Issue 2521073003: Remove the ability in dart2js to turn off syntax-only generic methods. (Closed)
Patch Set: eernst Created 4 years, 1 month 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
« no previous file with comments | « pkg/compiler/lib/src/parser/class_element_parser.dart ('k') | pkg/compiler/lib/src/parser/parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 002bba0cddb28ed287bb66002b212a9fb55e3335..e975a832bf8fb573c5b5f162382054929ec3fa69 100644
--- a/pkg/compiler/lib/src/parser/diet_parser_task.dart
+++ b/pkg/compiler/lib/src/parser/diet_parser_task.dart
@@ -9,20 +9,18 @@ import '../common/backend_api.dart' show Backend;
import '../common/tasks.dart' show CompilerTask, Measurer;
import '../elements/elements.dart' show CompilationUnitElement;
import '../id_generator.dart';
-import '../options.dart' show ParserOptions;
import '../tokens/token.dart' show Token;
import 'element_listener.dart' show ElementListener, ScannerOptions;
import 'listener.dart' show ParserError;
import 'partial_parser.dart' show PartialParser;
class DietParserTask extends CompilerTask {
- final ParserOptions _parserOptions;
final IdGenerator _idGenerator;
final Backend _backend;
final DiagnosticReporter _reporter;
- DietParserTask(this._parserOptions, this._idGenerator, this._backend,
- this._reporter, Measurer measurer)
+ DietParserTask(this._idGenerator, this._backend, this._reporter,
+ Measurer measurer)
: super(measurer);
final String name = 'Diet Parser';
@@ -33,7 +31,7 @@ class DietParserTask extends CompilerTask {
canUseNative: _backend.canLibraryUseNative(compilationUnit.library));
ElementListener listener = new ElementListener(
scannerOptions, _reporter, compilationUnit, _idGenerator);
- PartialParser parser = new PartialParser(listener, _parserOptions);
+ 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/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698