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

Unified Diff: pkg/analyzer/lib/src/generated/parser.dart

Issue 1892523002: Clean up flags for conditional directives (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/analyzer/lib/src/generated/incremental_resolver.dart ('k') | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/parser.dart
diff --git a/pkg/analyzer/lib/src/generated/parser.dart b/pkg/analyzer/lib/src/generated/parser.dart
index 32afd15c7082119126418461e13dd981faee872f..ff95539baf18517460ae92dcafd5886f29b9d612 100644
--- a/pkg/analyzer/lib/src/generated/parser.dart
+++ b/pkg/analyzer/lib/src/generated/parser.dart
@@ -2169,12 +2169,6 @@ class Parser {
bool _inInitializer = false;
/**
- * A flag indicating whether the parser is to parse conditional directives
- * syntax.
- */
- bool parseConditionalDirectives = false;
-
- /**
* A flag indicating whether the parser is to parse generic method syntax.
*/
bool parseGenericMethods = false;
@@ -2217,6 +2211,12 @@ class Parser {
this._parseAsync = parseAsync;
}
+ @deprecated
+ bool get parseConditionalDirectives => true;
+
+ @deprecated
+ void set parseConditionalDirectives(bool value) {}
+
/**
* Set whether parser is to parse function bodies.
*/
@@ -5360,10 +5360,8 @@ class Parser {
*/
List<Configuration> _parseConfigurations() {
List<Configuration> configurations = <Configuration>[];
- if (parseConditionalDirectives) {
- while (_matchesKeyword(Keyword.IF)) {
- configurations.add(_parseConfiguration());
- }
+ while (_matchesKeyword(Keyword.IF)) {
+ configurations.add(_parseConfiguration());
}
return configurations;
}
« no previous file with comments | « pkg/analyzer/lib/src/generated/incremental_resolver.dart ('k') | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698