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

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

Issue 2956093002: Issue 29960. Both CommandLineOptions and AnalysisOptions must be equal to reuse the context. (Closed)
Patch Set: Created 3 years, 5 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
« no previous file with comments | « no previous file | pkg/analyzer_cli/lib/src/driver.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 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 import 'dart:typed_data'; 9 import 'dart:typed_data';
10 10
(...skipping 1689 matching lines...) Expand 10 before | Expand all | Expand 10 after
1700 enableLazyAssignmentOperators = options.enableLazyAssignmentOperators; 1700 enableLazyAssignmentOperators = options.enableLazyAssignmentOperators;
1701 enableStrictCallChecks = options.enableStrictCallChecks; 1701 enableStrictCallChecks = options.enableStrictCallChecks;
1702 enableSuperMixins = options.enableSuperMixins; 1702 enableSuperMixins = options.enableSuperMixins;
1703 strongMode = options.strongMode; 1703 strongMode = options.strongMode;
1704 if (options is AnalysisOptionsImpl) { 1704 if (options is AnalysisOptionsImpl) {
1705 strongModeHints = options.strongModeHints; 1705 strongModeHints = options.strongModeHints;
1706 } 1706 }
1707 } 1707 }
1708 1708
1709 /** 1709 /**
1710 * Return whether the given lists of lints are equal.
1711 */
1712 static bool compareLints(List<Linter> a, List<Linter> b) {
1713 if (a.length != b.length) {
1714 return false;
1715 }
1716 for (int i = 0; i < a.length; i++) {
1717 if (a[i].lintCode != b[i].lintCode) {
1718 return false;
1719 }
1720 }
1721 return true;
1722 }
1723
1724 /**
1710 * Predicate used for [analyzeFunctionBodiesPredicate] when 1725 * Predicate used for [analyzeFunctionBodiesPredicate] when
1711 * [analyzeFunctionBodies] is set to `true`. 1726 * [analyzeFunctionBodies] is set to `true`.
1712 */ 1727 */
1713 static bool _analyzeAllFunctionBodies(Source _) => true; 1728 static bool _analyzeAllFunctionBodies(Source _) => true;
1714 1729
1715 /** 1730 /**
1716 * Predicate used for [analyzeFunctionBodiesPredicate] when 1731 * Predicate used for [analyzeFunctionBodiesPredicate] when
1717 * [analyzeFunctionBodies] is set to `false`. 1732 * [analyzeFunctionBodies] is set to `false`.
1718 */ 1733 */
1719 static bool _analyzeNoFunctionBodies(Source _) => false; 1734 static bool _analyzeNoFunctionBodies(Source _) => false;
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after
2861 */ 2876 */
2862 bool get wereSourcesAdded => _changeSet.addedSources.length > 0; 2877 bool get wereSourcesAdded => _changeSet.addedSources.length > 0;
2863 2878
2864 /** 2879 /**
2865 * Return `true` if any sources were removed or deleted. 2880 * Return `true` if any sources were removed or deleted.
2866 */ 2881 */
2867 bool get wereSourcesRemoved => 2882 bool get wereSourcesRemoved =>
2868 _changeSet.removedSources.length > 0 || 2883 _changeSet.removedSources.length > 0 ||
2869 _changeSet.removedContainers.length > 0; 2884 _changeSet.removedContainers.length > 0;
2870 } 2885 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer_cli/lib/src/driver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698