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

Side by Side Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 2335693002: Add support for accessing field formal parameters in the initializer list of constructors (Closed)
Patch Set: Clean up Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library analyzer.src.generated.engine; 5 library analyzer.src.generated.engine;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'package:analyzer/dart/ast/ast.dart'; 10 import 'package:analyzer/dart/ast/ast.dart';
(...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after
1070 */ 1070 */
1071 @deprecated 1071 @deprecated
1072 bool get enableConditionalDirectives; 1072 bool get enableConditionalDirectives;
1073 1073
1074 /** 1074 /**
1075 * Return `true` to enable generic methods (DEP 22). 1075 * Return `true` to enable generic methods (DEP 22).
1076 */ 1076 */
1077 bool get enableGenericMethods => null; 1077 bool get enableGenericMethods => null;
1078 1078
1079 /** 1079 /**
1080 * Return `true` if access to field formal parameters should be allowed in a
1081 * constructor's initializer list.
1082 */
1083 bool get enableInitializingFormalAccess;
1084
1085 /**
1080 * Return `true` to enable the lazy compound assignment operators '&&=' and 1086 * Return `true` to enable the lazy compound assignment operators '&&=' and
1081 * '||='. 1087 * '||='.
1082 */ 1088 */
1083 bool get enableLazyAssignmentOperators; 1089 bool get enableLazyAssignmentOperators;
1084 1090
1085 /** 1091 /**
1086 * Return `true` to strictly follow the specification when generating 1092 * Return `true` to strictly follow the specification when generating
1087 * warnings on "call" methods (fixes dartbug.com/21938). 1093 * warnings on "call" methods (fixes dartbug.com/21938).
1088 */ 1094 */
1089 bool get enableStrictCallChecks; 1095 bool get enableStrictCallChecks;
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
1221 @override 1227 @override
1222 bool enableAssertMessage = false; 1228 bool enableAssertMessage = false;
1223 1229
1224 @override 1230 @override
1225 bool enableAsync = true; 1231 bool enableAsync = true;
1226 1232
1227 @override 1233 @override
1228 bool enableGenericMethods = false; 1234 bool enableGenericMethods = false;
1229 1235
1230 @override 1236 @override
1237 bool enableInitializingFormalAccess = false;
1238
1239 @override
1231 bool enableLazyAssignmentOperators = false; 1240 bool enableLazyAssignmentOperators = false;
1232 1241
1233 @override 1242 @override
1234 bool enableStrictCallChecks = false; 1243 bool enableStrictCallChecks = false;
1235 1244
1236 @override 1245 @override
1237 bool enableSuperMixins = false; 1246 bool enableSuperMixins = false;
1238 1247
1239 @override 1248 @override
1240 bool enableTiming = false; 1249 bool enableTiming = false;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
1318 */ 1327 */
1319 AnalysisOptionsImpl.from(AnalysisOptions options) { 1328 AnalysisOptionsImpl.from(AnalysisOptions options) {
1320 analyzeFunctionBodiesPredicate = options.analyzeFunctionBodiesPredicate; 1329 analyzeFunctionBodiesPredicate = options.analyzeFunctionBodiesPredicate;
1321 cacheSize = options.cacheSize; 1330 cacheSize = options.cacheSize;
1322 dart2jsHint = options.dart2jsHint; 1331 dart2jsHint = options.dart2jsHint;
1323 enableAssertInitializer = options.enableAssertInitializer; 1332 enableAssertInitializer = options.enableAssertInitializer;
1324 enableAssertMessage = options.enableAssertMessage; 1333 enableAssertMessage = options.enableAssertMessage;
1325 enableAsync = options.enableAsync; 1334 enableAsync = options.enableAsync;
1326 enableStrictCallChecks = options.enableStrictCallChecks; 1335 enableStrictCallChecks = options.enableStrictCallChecks;
1327 enableGenericMethods = options.enableGenericMethods; 1336 enableGenericMethods = options.enableGenericMethods;
1337 enableInitializingFormalAccess = options.enableInitializingFormalAccess;
1328 enableSuperMixins = options.enableSuperMixins; 1338 enableSuperMixins = options.enableSuperMixins;
1329 enableTiming = options.enableTiming; 1339 enableTiming = options.enableTiming;
1330 generateImplicitErrors = options.generateImplicitErrors; 1340 generateImplicitErrors = options.generateImplicitErrors;
1331 generateSdkErrors = options.generateSdkErrors; 1341 generateSdkErrors = options.generateSdkErrors;
1332 hint = options.hint; 1342 hint = options.hint;
1333 incremental = options.incremental; 1343 incremental = options.incremental;
1334 incrementalApi = options.incrementalApi; 1344 incrementalApi = options.incrementalApi;
1335 incrementalValidation = options.incrementalValidation; 1345 incrementalValidation = options.incrementalValidation;
1336 lint = options.lint; 1346 lint = options.lint;
1337 preserveComments = options.preserveComments; 1347 preserveComments = options.preserveComments;
(...skipping 1344 matching lines...) Expand 10 before | Expand all | Expand 10 after
2682 * The data that was created from the source. 2692 * The data that was created from the source.
2683 */ 2693 */
2684 final E data; 2694 final E data;
2685 2695
2686 /** 2696 /**
2687 * Initialize a newly created holder to associate the given [data] with the 2697 * Initialize a newly created holder to associate the given [data] with the
2688 * given [modificationTime]. 2698 * given [modificationTime].
2689 */ 2699 */
2690 TimestampedData(this.modificationTime, this.data); 2700 TimestampedData(this.modificationTime, this.data);
2691 } 2701 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/dart/resolver/scope.dart ('k') | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698