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

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

Issue 2282233002: Add support for parsing, but not capturing, assers in constructor initializer lists (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: add flag Created 4 years, 4 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/context/context.dart ('k') | pkg/analyzer/lib/src/generated/parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/engine.dart
diff --git a/pkg/analyzer/lib/src/generated/engine.dart b/pkg/analyzer/lib/src/generated/engine.dart
index b229169be6edf5ac1ee6f35f48287b3cbaf8a195..aa9a74b2b384675b65a6385dbb8c23366ac4eecf 100644
--- a/pkg/analyzer/lib/src/generated/engine.dart
+++ b/pkg/analyzer/lib/src/generated/engine.dart
@@ -1049,6 +1049,12 @@ abstract class AnalysisOptions {
bool get dart2jsHint;
/**
+ * Return `true` if the parser is to parse asserts in the initializer list of
+ * a constructor.
+ */
+ bool get enableAssertInitializer;
+
+ /**
* Return `true` to enable custom assert messages (DEP 37).
*/
bool get enableAssertMessage;
@@ -1202,100 +1208,61 @@ class AnalysisOptionsImpl implements AnalysisOptions {
AnalyzeFunctionBodiesPredicate _analyzeFunctionBodiesPredicate =
_analyzeAllFunctionBodies;
- /**
- * The maximum number of sources for which AST structures should be kept in
- * the cache.
- */
+ @override
int cacheSize = DEFAULT_CACHE_SIZE;
- /**
- * A flag indicating whether analysis is to generate dart2js related hint
- * results.
- */
+ @override
bool dart2jsHint = false;
- /**
- * A flag indicating whether custom assert messages are to be supported (DEP
- * 37).
- */
+ @override
+ bool enableAssertInitializer = false;
+
+ @override
bool enableAssertMessage = false;
- /**
- * A flag indicating whether analysis is to enable async support.
- */
+ @override
bool enableAsync = true;
- /**
- * A flag indicating whether generic methods are to be supported (DEP 22).
- */
+ @override
bool enableGenericMethods = false;
@override
bool enableLazyAssignmentOperators = false;
- /**
- * A flag indicating whether analysis is to strictly follow the specification
- * when generating warnings on "call" methods (fixes dartbug.com/21938).
- */
+ @override
bool enableStrictCallChecks = false;
- /**
- * A flag indicating whether mixins are allowed to inherit from types other
- * than Object, and are allowed to reference `super`.
- */
+ @override
bool enableSuperMixins = false;
@override
bool enableTiming = false;
- /**
- * A flag indicating whether errors, warnings and hints should be generated
- * for sources that are implicitly being analyzed.
- */
+ @override
bool generateImplicitErrors = true;
- /**
- * A flag indicating whether errors, warnings and hints should be generated
- * for sources in the SDK.
- */
+ @override
bool generateSdkErrors = false;
- /**
- * A flag indicating whether analysis is to generate hint results (e.g. type
- * inference based information and pub best practices).
- */
+ @override
bool hint = true;
- /**
- * A flag indicating whether incremental analysis should be used.
- */
+ @override
bool incremental = false;
- /**
- * A flag indicating whether incremental analysis should be used for API
- * changes.
- */
+ @override
bool incrementalApi = false;
- /**
- * A flag indicating whether validation should be performed after incremental
- * analysis.
- */
+ @override
bool incrementalValidation = false;
- /**
- * A flag indicating whether analysis is to generate lint warnings.
- */
+ @override
bool lint = false;
- /**
- * A flag indicating whether analysis is to parse comments.
- */
+ @override
bool preserveComments = true;
- /**
- * A flag indicating whether strong-mode analysis should be used.
- */
+ @override
bool strongMode = false;
/**
@@ -1352,6 +1319,7 @@ class AnalysisOptionsImpl implements AnalysisOptions {
analyzeFunctionBodiesPredicate = options.analyzeFunctionBodiesPredicate;
cacheSize = options.cacheSize;
dart2jsHint = options.dart2jsHint;
+ enableAssertInitializer = options.enableAssertInitializer;
enableAssertMessage = options.enableAssertMessage;
enableAsync = options.enableAsync;
enableStrictCallChecks = options.enableStrictCallChecks;
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/lib/src/generated/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698