OLD | NEW |
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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
7 | 7 |
8 library engine; | 8 library engine; |
9 | 9 |
10 import "dart:math" as math; | 10 import "dart:math" as math; |
(...skipping 1446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1457 } | 1457 } |
1458 | 1458 |
1459 @override | 1459 @override |
1460 void addListener(AnalysisListener listener) { | 1460 void addListener(AnalysisListener listener) { |
1461 if (!_listeners.contains(listener)) { | 1461 if (!_listeners.contains(listener)) { |
1462 _listeners.add(listener); | 1462 _listeners.add(listener); |
1463 } | 1463 } |
1464 } | 1464 } |
1465 | 1465 |
1466 @override | 1466 @override |
1467 void addSourceInfo(Source source, SourceEntry info) { | |
1468 // This implementation assumes that the access to the cache does not need to | |
1469 // be synchronized because no other object can have access to this context | |
1470 // while this method is being invoked. | |
1471 _cache.put(source, info); | |
1472 } | |
1473 | |
1474 @override | |
1475 void applyAnalysisDelta(AnalysisDelta delta) { | 1467 void applyAnalysisDelta(AnalysisDelta delta) { |
1476 ChangeSet changeSet = new ChangeSet(); | 1468 ChangeSet changeSet = new ChangeSet(); |
1477 delta.analysisLevels.forEach((Source source, AnalysisLevel level) { | 1469 delta.analysisLevels.forEach((Source source, AnalysisLevel level) { |
1478 if (level == AnalysisLevel.NONE) { | 1470 if (level == AnalysisLevel.NONE) { |
1479 changeSet.removedSource(source); | 1471 changeSet.removedSource(source); |
1480 } else { | 1472 } else { |
1481 changeSet.addedSource(source); | 1473 changeSet.addedSource(source); |
1482 } | 1474 } |
1483 }); | 1475 }); |
1484 applyChanges(changeSet); | 1476 applyChanges(changeSet); |
(...skipping 7586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9071 * Sets the [TypeProvider] for this context. | 9063 * Sets the [TypeProvider] for this context. |
9072 */ | 9064 */ |
9073 void set typeProvider(TypeProvider typeProvider); | 9065 void set typeProvider(TypeProvider typeProvider); |
9074 | 9066 |
9075 /** | 9067 /** |
9076 * A factory to override how [TypeResolverVisitor] is created. | 9068 * A factory to override how [TypeResolverVisitor] is created. |
9077 */ | 9069 */ |
9078 TypeResolverVisitorFactory get typeResolverVisitorFactory; | 9070 TypeResolverVisitorFactory get typeResolverVisitorFactory; |
9079 | 9071 |
9080 /** | 9072 /** |
9081 * Add the given [source] with the given [information] to this context. | |
9082 */ | |
9083 void addSourceInfo(Source source, SourceEntry information); | |
9084 | |
9085 /** | |
9086 * Return a list containing the sources of the libraries that are exported by | 9073 * Return a list containing the sources of the libraries that are exported by |
9087 * the library with the given [source]. The list will be empty if the given | 9074 * the library with the given [source]. The list will be empty if the given |
9088 * source is invalid, if the given source does not represent a library, or if | 9075 * source is invalid, if the given source does not represent a library, or if |
9089 * the library does not export any other libraries. | 9076 * the library does not export any other libraries. |
9090 * | 9077 * |
9091 * Throws an [AnalysisException] if the exported libraries could not be | 9078 * Throws an [AnalysisException] if the exported libraries could not be |
9092 * computed. | 9079 * computed. |
9093 */ | 9080 */ |
9094 List<Source> computeExportedLibraries(Source source); | 9081 List<Source> computeExportedLibraries(Source source); |
9095 | 9082 |
(...skipping 2615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11711 visitElement(Element element) { | 11698 visitElement(Element element) { |
11712 if (element.id == _id) { | 11699 if (element.id == _id) { |
11713 result = element; | 11700 result = element; |
11714 throw new _ElementByIdFinderException(); | 11701 throw new _ElementByIdFinderException(); |
11715 } | 11702 } |
11716 super.visitElement(element); | 11703 super.visitElement(element); |
11717 } | 11704 } |
11718 } | 11705 } |
11719 | 11706 |
11720 class _ElementByIdFinderException {} | 11707 class _ElementByIdFinderException {} |
OLD | NEW |