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

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

Issue 1412573012: Option support for `enableGenericMethods`. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge Created 5 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 unified diff | Download patch
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/lib/src/task/options.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 engine; 5 library engine;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:math' as math; 9 import 'dart:math' as math;
10 10
(...skipping 6451 matching lines...) Expand 10 before | Expand all | Expand 10 after
6462 /** 6462 /**
6463 * Initialize a newly created set of analysis options to have the same values 6463 * Initialize a newly created set of analysis options to have the same values
6464 * as those in the given set of analysis [options]. 6464 * as those in the given set of analysis [options].
6465 */ 6465 */
6466 @deprecated // Use new AnalysisOptionsImpl.from(options) 6466 @deprecated // Use new AnalysisOptionsImpl.from(options)
6467 AnalysisOptionsImpl.con1(AnalysisOptions options) { 6467 AnalysisOptionsImpl.con1(AnalysisOptions options) {
6468 analyzeFunctionBodiesPredicate = options.analyzeFunctionBodiesPredicate; 6468 analyzeFunctionBodiesPredicate = options.analyzeFunctionBodiesPredicate;
6469 cacheSize = options.cacheSize; 6469 cacheSize = options.cacheSize;
6470 dart2jsHint = options.dart2jsHint; 6470 dart2jsHint = options.dart2jsHint;
6471 enableStrictCallChecks = options.enableStrictCallChecks; 6471 enableStrictCallChecks = options.enableStrictCallChecks;
6472 enableGenericMethods = options.enableGenericMethods;
6472 enableSuperMixins = options.enableSuperMixins; 6473 enableSuperMixins = options.enableSuperMixins;
6473 generateImplicitErrors = options.generateImplicitErrors; 6474 generateImplicitErrors = options.generateImplicitErrors;
6474 generateSdkErrors = options.generateSdkErrors; 6475 generateSdkErrors = options.generateSdkErrors;
6475 hint = options.hint; 6476 hint = options.hint;
6476 incremental = options.incremental; 6477 incremental = options.incremental;
6477 incrementalApi = options.incrementalApi; 6478 incrementalApi = options.incrementalApi;
6478 incrementalValidation = options.incrementalValidation; 6479 incrementalValidation = options.incrementalValidation;
6479 lint = options.lint; 6480 lint = options.lint;
6480 preserveComments = options.preserveComments; 6481 preserveComments = options.preserveComments;
6481 strongMode = options.strongMode; 6482 strongMode = options.strongMode;
6482 } 6483 }
6483 6484
6484 /** 6485 /**
6485 * Initialize a newly created set of analysis options to have the same values 6486 * Initialize a newly created set of analysis options to have the same values
6486 * as those in the given set of analysis [options]. 6487 * as those in the given set of analysis [options].
6487 */ 6488 */
6488 AnalysisOptionsImpl.from(AnalysisOptions options) { 6489 AnalysisOptionsImpl.from(AnalysisOptions options) {
6489 analyzeFunctionBodiesPredicate = options.analyzeFunctionBodiesPredicate; 6490 analyzeFunctionBodiesPredicate = options.analyzeFunctionBodiesPredicate;
6490 cacheSize = options.cacheSize; 6491 cacheSize = options.cacheSize;
6491 dart2jsHint = options.dart2jsHint; 6492 dart2jsHint = options.dart2jsHint;
6492 enableStrictCallChecks = options.enableStrictCallChecks; 6493 enableStrictCallChecks = options.enableStrictCallChecks;
6494 enableGenericMethods = options.enableGenericMethods;
6493 enableSuperMixins = options.enableSuperMixins; 6495 enableSuperMixins = options.enableSuperMixins;
6494 generateImplicitErrors = options.generateImplicitErrors; 6496 generateImplicitErrors = options.generateImplicitErrors;
6495 generateSdkErrors = options.generateSdkErrors; 6497 generateSdkErrors = options.generateSdkErrors;
6496 hint = options.hint; 6498 hint = options.hint;
6497 incremental = options.incremental; 6499 incremental = options.incremental;
6498 incrementalApi = options.incrementalApi; 6500 incrementalApi = options.incrementalApi;
6499 incrementalValidation = options.incrementalValidation; 6501 incrementalValidation = options.incrementalValidation;
6500 lint = options.lint; 6502 lint = options.lint;
6501 preserveComments = options.preserveComments; 6503 preserveComments = options.preserveComments;
6502 strongMode = options.strongMode; 6504 strongMode = options.strongMode;
(...skipping 5608 matching lines...) Expand 10 before | Expand all | Expand 10 after
12111 PendingFuture pendingFuture = 12113 PendingFuture pendingFuture =
12112 new PendingFuture<T>(_context, source, computeValue); 12114 new PendingFuture<T>(_context, source, computeValue);
12113 if (!pendingFuture.evaluate(sourceEntry)) { 12115 if (!pendingFuture.evaluate(sourceEntry)) {
12114 _context._pendingFutureSources 12116 _context._pendingFutureSources
12115 .putIfAbsent(source, () => <PendingFuture>[]) 12117 .putIfAbsent(source, () => <PendingFuture>[])
12116 .add(pendingFuture); 12118 .add(pendingFuture);
12117 } 12119 }
12118 return pendingFuture.future; 12120 return pendingFuture.future;
12119 } 12121 }
12120 } 12122 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/lib/src/task/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698