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

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

Issue 1859543002: Revert "Introduces `ParserOptions`." (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « pkg/compiler/lib/src/parser/diet_parser_task.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/element_listener.dart
diff --git a/pkg/compiler/lib/src/parser/element_listener.dart b/pkg/compiler/lib/src/parser/element_listener.dart
index fa524cc9365050aadfef18bc3f1d7c0d29b143ec..48bfae3139327643294a3ba0855a560138244dde 100644
--- a/pkg/compiler/lib/src/parser/element_listener.dart
+++ b/pkg/compiler/lib/src/parser/element_listener.dart
@@ -4,8 +4,6 @@
library dart2js.parser.element_listener;
-import '../compiler.dart' show
- Compiler;
import '../common.dart';
import '../diagnostics/messages.dart' show
MessageTemplate;
@@ -59,17 +57,11 @@ typedef int IdGenerator();
/// Options used for scanning.
///
/// Use this to conditionally support special tokens.
-///
-/// TODO(johnniwinther): This class should be renamed, it is not about options
-/// in the same sense as `CompilerOptions` or `DiagnosticOptions`.
class ScannerOptions {
/// If `true` the pseudo keyword `native` is supported.
final bool canUseNative;
const ScannerOptions({this.canUseNative: false});
-
- ScannerOptions.from(Compiler compiler, LibraryElement libraryElement) :
- canUseNative = compiler.backend.canLibraryUseNative(libraryElement);
}
/**
« no previous file with comments | « pkg/compiler/lib/src/parser/diet_parser_task.dart ('k') | pkg/compiler/lib/src/parser/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698