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

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

Issue 2536303002: Exclude files from analysis when using AnalysisDriver (Closed)
Patch Set: clean-up Created 4 years 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 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after
1253 /** 1253 /**
1254 * Return a list of integers encoding of the values of the options that need 1254 * Return a list of integers encoding of the values of the options that need
1255 * to be the same across all of the contexts associated with partitions that 1255 * to be the same across all of the contexts associated with partitions that
1256 * are to be shared by a single analysis context. 1256 * are to be shared by a single analysis context.
1257 * 1257 *
1258 * The length of the list is guaranteed to equal [crossContextOptionsLength]. 1258 * The length of the list is guaranteed to equal [crossContextOptionsLength].
1259 */ 1259 */
1260 List<int> encodeCrossContextOptions(); 1260 List<int> encodeCrossContextOptions();
1261 1261
1262 /** 1262 /**
1263 * Reset the state of this set of analysis options to its original state.
1264 */
1265 void resetToDefaults();
1266
1267 /**
1263 * Set the values of the cross-context options to match those in the given set 1268 * Set the values of the cross-context options to match those in the given set
1264 * of [options]. 1269 * of [options].
1265 */ 1270 */
1266 void setCrossContextOptionsFrom(AnalysisOptions options); 1271 void setCrossContextOptionsFrom(AnalysisOptions options);
1267 1272
1268 /** 1273 /**
1269 * Determine whether two lists returned by [encodeCrossContextOptions] are 1274 * Determine whether two lists returned by [encodeCrossContextOptions] are
1270 * equal. 1275 * equal.
1271 */ 1276 */
1272 static bool crossContextOptionsEqual(List<int> a, List<int> b) { 1277 static bool crossContextOptionsEqual(List<int> a, List<int> b) {
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
1576 int flags = (enableAssertMessage ? ENABLE_ASSERT_FLAG : 0) | 1581 int flags = (enableAssertMessage ? ENABLE_ASSERT_FLAG : 0) |
1577 (enableLazyAssignmentOperators ? ENABLE_LAZY_ASSIGNMENT_OPERATORS : 0) | 1582 (enableLazyAssignmentOperators ? ENABLE_LAZY_ASSIGNMENT_OPERATORS : 0) |
1578 (enableStrictCallChecks ? ENABLE_STRICT_CALL_CHECKS_FLAG : 0) | 1583 (enableStrictCallChecks ? ENABLE_STRICT_CALL_CHECKS_FLAG : 0) |
1579 (enableSuperMixins ? ENABLE_SUPER_MIXINS_FLAG : 0) | 1584 (enableSuperMixins ? ENABLE_SUPER_MIXINS_FLAG : 0) |
1580 (strongMode ? ENABLE_STRONG_MODE_FLAG : 0) | 1585 (strongMode ? ENABLE_STRONG_MODE_FLAG : 0) |
1581 (strongModeHints ? ENABLE_STRONG_MODE_HINTS_FLAG : 0); 1586 (strongModeHints ? ENABLE_STRONG_MODE_HINTS_FLAG : 0);
1582 return <int>[flags, patchPlatform]; 1587 return <int>[flags, patchPlatform];
1583 } 1588 }
1584 1589
1585 @override 1590 @override
1591 void resetToDefaults() {
1592 dart2jsHint = false;
1593 disableCacheFlushing = false;
1594 enableAssertInitializer = false;
1595 enableAssertMessage = false;
1596 enableLazyAssignmentOperators = false;
1597 enableStrictCallChecks = false;
1598 enableSuperMixins = false;
1599 enableTiming = false;
1600 enableUriInPartOf = false;
1601 _errorProcessors = null;
1602 _excludePatterns = null;
1603 finerGrainedInvalidation = false;
1604 generateImplicitErrors = true;
1605 generateSdkErrors = false;
1606 hint = true;
1607 implicitCasts = true;
1608 implicitDynamic = true;
1609 incremental = false;
1610 incrementalApi = false;
1611 incrementalValidation = false;
1612 lint = false;
1613 _lintRules = null;
1614 nonnullableTypes = NONNULLABLE_TYPES;
1615 patchPlatform = 0;
1616 preserveComments = true;
1617 strongMode = false;
1618 strongModeHints = false;
1619 trackCacheDependencies = true;
1620 }
1621
1622 @override
1586 void setCrossContextOptionsFrom(AnalysisOptions options) { 1623 void setCrossContextOptionsFrom(AnalysisOptions options) {
1587 enableAssertMessage = options.enableAssertMessage; 1624 enableAssertMessage = options.enableAssertMessage;
1588 enableLazyAssignmentOperators = options.enableLazyAssignmentOperators; 1625 enableLazyAssignmentOperators = options.enableLazyAssignmentOperators;
1589 enableStrictCallChecks = options.enableStrictCallChecks; 1626 enableStrictCallChecks = options.enableStrictCallChecks;
1590 enableSuperMixins = options.enableSuperMixins; 1627 enableSuperMixins = options.enableSuperMixins;
1591 strongMode = options.strongMode; 1628 strongMode = options.strongMode;
1592 if (options is AnalysisOptionsImpl) { 1629 if (options is AnalysisOptionsImpl) {
1593 strongModeHints = options.strongModeHints; 1630 strongModeHints = options.strongModeHints;
1594 } 1631 }
1595 patchPlatform = options.patchPlatform; 1632 patchPlatform = options.patchPlatform;
(...skipping 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after
2802 */ 2839 */
2803 bool get wereSourcesAdded => _changeSet.addedSources.length > 0; 2840 bool get wereSourcesAdded => _changeSet.addedSources.length > 0;
2804 2841
2805 /** 2842 /**
2806 * Return `true` if any sources were removed or deleted. 2843 * Return `true` if any sources were removed or deleted.
2807 */ 2844 */
2808 bool get wereSourcesRemoved => 2845 bool get wereSourcesRemoved =>
2809 _changeSet.removedSources.length > 0 || 2846 _changeSet.removedSources.length > 0 ||
2810 _changeSet.removedContainers.length > 0; 2847 _changeSet.removedContainers.length > 0;
2811 } 2848 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/context_manager.dart ('k') | pkg/analyzer/test/generated/engine_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698