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

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

Issue 348673002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « pkg/analyzer/lib/src/generated/element.dart ('k') | pkg/analyzer/lib/src/generated/error.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 // 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:collection'; 10 import 'dart:collection';
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after
959 // 959 //
960 // Then determine which cached results are no longer valid. 960 // Then determine which cached results are no longer valid.
961 // 961 //
962 bool addedDartSource = false; 962 bool addedDartSource = false;
963 for (Source source in changeSet.addedSources) { 963 for (Source source in changeSet.addedSources) {
964 if (_sourceAvailable(source)) { 964 if (_sourceAvailable(source)) {
965 addedDartSource = true; 965 addedDartSource = true;
966 } 966 }
967 } 967 }
968 for (Source source in changeSet.changedSources) { 968 for (Source source in changeSet.changedSources) {
969 if (_contentCache.getContents(source) != null) {
970 // This source is overridden in the content cache, so the change will ha ve no effect.
971 // Just ignore it to avoid wasting time doing re-analysis.
972 continue;
973 }
969 _sourceChanged(source); 974 _sourceChanged(source);
970 } 975 }
971 for (MapEntry<Source, String> entry in getMapEntrySet(changeSet.changedConte nts)) { 976 for (MapEntry<Source, String> entry in getMapEntrySet(changeSet.changedConte nts)) {
972 setContents(entry.getKey(), entry.getValue()); 977 setContents(entry.getKey(), entry.getValue());
973 } 978 }
974 for (MapEntry<Source, ChangeSet_ContentChange> entry in getMapEntrySet(chang eSet.changedRanges)) { 979 for (MapEntry<Source, ChangeSet_ContentChange> entry in getMapEntrySet(chang eSet.changedRanges)) {
975 ChangeSet_ContentChange change = entry.getValue(); 980 ChangeSet_ContentChange change = entry.getValue();
976 setChangedContents(entry.getKey(), change.contents, change.offset, change. oldLength, change.newLength); 981 setChangedContents(entry.getKey(), change.contents, change.offset, change. oldLength, change.newLength);
977 } 982 }
978 for (Source source in changeSet.deletedSources) { 983 for (Source source in changeSet.deletedSources) {
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 return source.contents; 1253 return source.contents;
1249 } 1254 }
1250 1255
1251 @override 1256 @override
1252 DeclaredVariables get declaredVariables => _declaredVariables; 1257 DeclaredVariables get declaredVariables => _declaredVariables;
1253 1258
1254 @override 1259 @override
1255 Element getElement(ElementLocation location) { 1260 Element getElement(ElementLocation location) {
1256 // TODO(brianwilkerson) This should not be a "get" method. 1261 // TODO(brianwilkerson) This should not be a "get" method.
1257 try { 1262 try {
1258 List<String> components = (location as ElementLocationImpl).components; 1263 List<String> components = location.components;
1259 Source librarySource = _computeSourceFromEncoding(components[0]); 1264 Source source = _computeSourceFromEncoding(components[0]);
1260 ElementImpl element = computeLibraryElement(librarySource) as ElementImpl; 1265 String sourceName = source.shortName;
1261 for (int i = 1; i < components.length; i++) { 1266 if (AnalysisEngine.isDartFileName(sourceName)) {
1262 if (element == null) { 1267 ElementImpl element = computeLibraryElement(source) as ElementImpl;
1263 return null; 1268 for (int i = 1; i < components.length; i++) {
1269 if (element == null) {
1270 return null;
1271 }
1272 element = element.getChild(components[i]);
1264 } 1273 }
1265 element = element.getChild(components[i]); 1274 return element;
1266 } 1275 }
1267 return element; 1276 if (AnalysisEngine.isHtmlFileName(sourceName)) {
1277 return computeHtmlElement(source);
1278 }
1268 } on AnalysisException catch (exception) { 1279 } on AnalysisException catch (exception) {
1269 return null;
1270 } 1280 }
1281 return null;
1271 } 1282 }
1272 1283
1273 @override 1284 @override
1274 AnalysisErrorInfo getErrors(Source source) { 1285 AnalysisErrorInfo getErrors(Source source) {
1275 SourceEntry sourceEntry = _getReadableSourceEntryOrNull(source); 1286 SourceEntry sourceEntry = _getReadableSourceEntryOrNull(source);
1276 if (sourceEntry is DartEntry) { 1287 if (sourceEntry is DartEntry) {
1277 DartEntry dartEntry = sourceEntry; 1288 DartEntry dartEntry = sourceEntry;
1278 return new AnalysisErrorInfoImpl(dartEntry.allErrors, dartEntry.getValue(S ourceEntry.LINE_INFO)); 1289 return new AnalysisErrorInfoImpl(dartEntry.allErrors, dartEntry.getValue(S ourceEntry.LINE_INFO));
1279 } else if (sourceEntry is HtmlEntry) { 1290 } else if (sourceEntry is HtmlEntry) {
1280 HtmlEntry htmlEntry = sourceEntry; 1291 HtmlEntry htmlEntry = sourceEntry;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
1434 @override 1445 @override
1435 int getModificationStamp(Source source) { 1446 int getModificationStamp(Source source) {
1436 int stamp = _contentCache.getModificationStamp(source); 1447 int stamp = _contentCache.getModificationStamp(source);
1437 if (stamp != null) { 1448 if (stamp != null) {
1438 return stamp; 1449 return stamp;
1439 } 1450 }
1440 return source.modificationStamp; 1451 return source.modificationStamp;
1441 } 1452 }
1442 1453
1443 @override 1454 @override
1455 List<Source> get prioritySources => _priorityOrder;
1456
1457 @override
1444 Namespace getPublicNamespace(LibraryElement library) { 1458 Namespace getPublicNamespace(LibraryElement library) {
1445 // TODO(brianwilkerson) Rename this to not start with 'get'. Note that this is not part of the 1459 // TODO(brianwilkerson) Rename this to not start with 'get'. Note that this is not part of the
1446 // API of the interface. 1460 // API of the interface.
1447 Source source = library.definingCompilationUnit.source; 1461 Source source = library.definingCompilationUnit.source;
1448 DartEntry dartEntry = _getReadableDartEntry(source); 1462 DartEntry dartEntry = _getReadableDartEntry(source);
1449 if (dartEntry == null) { 1463 if (dartEntry == null) {
1450 return null; 1464 return null;
1451 } 1465 }
1452 Namespace namespace = null; 1466 Namespace namespace = null;
1453 if (identical(dartEntry.getValue(DartEntry.ELEMENT), library)) { 1467 if (identical(dartEntry.getValue(DartEntry.ELEMENT), library)) {
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
1732 CompilationUnit resolveCompilationUnit2(Source unitSource, Source librarySourc e) => _getDartResolutionData2(unitSource, librarySource, DartEntry.RESOLVED_UNIT , null); 1746 CompilationUnit resolveCompilationUnit2(Source unitSource, Source librarySourc e) => _getDartResolutionData2(unitSource, librarySource, DartEntry.RESOLVED_UNIT , null);
1733 1747
1734 @override 1748 @override
1735 ht.HtmlUnit resolveHtmlUnit(Source htmlSource) { 1749 ht.HtmlUnit resolveHtmlUnit(Source htmlSource) {
1736 computeHtmlElement(htmlSource); 1750 computeHtmlElement(htmlSource);
1737 return parseHtmlUnit(htmlSource); 1751 return parseHtmlUnit(htmlSource);
1738 } 1752 }
1739 1753
1740 @override 1754 @override
1741 void set analysisOptions(AnalysisOptions options) { 1755 void set analysisOptions(AnalysisOptions options) {
1742 bool needsRecompute = this._options.analyzeFunctionBodies != options.analyze FunctionBodies || this._options.generateSdkErrors != options.generateSdkErrors | | this._options.enableDeferredLoading != options.enableDeferredLoading || this._ options.dart2jsHint != options.dart2jsHint || (this._options.hint && !options.hi nt) || this._options.preserveComments != options.preserveComments; 1756 bool needsRecompute = this._options.analyzeAngular != options.analyzeAngular || this._options.analyzeFunctionBodies != options.analyzeFunctionBodies || this ._options.generateSdkErrors != options.generateSdkErrors || this._options.enable DeferredLoading != options.enableDeferredLoading || this._options.dart2jsHint != options.dart2jsHint || (this._options.hint && !options.hint) || this._options.p reserveComments != options.preserveComments;
1743 int cacheSize = options.cacheSize; 1757 int cacheSize = options.cacheSize;
1744 if (this._options.cacheSize != cacheSize) { 1758 if (this._options.cacheSize != cacheSize) {
1745 this._options.cacheSize = cacheSize; 1759 this._options.cacheSize = cacheSize;
1746 //cache.setMaxCacheSize(cacheSize); 1760 //cache.setMaxCacheSize(cacheSize);
1747 _privatePartition.maxCacheSize = cacheSize; 1761 _privatePartition.maxCacheSize = cacheSize;
1748 // 1762 //
1749 // Cap the size of the priority list to being less than the cache size. Fa ilure to do so can 1763 // Cap the size of the priority list to being less than the cache size. Fa ilure to do so can
1750 // result in an infinite loop in performAnalysisTask() because re-caching one AST structure 1764 // result in an infinite loop in performAnalysisTask() because re-caching one AST structure
1751 // can cause another priority source's AST structure to be flushed. 1765 // can cause another priority source's AST structure to be flushed.
1752 // 1766 //
1753 int maxPriorityOrderSize = cacheSize - _PRIORITY_ORDER_SIZE_DELTA; 1767 int maxPriorityOrderSize = cacheSize - _PRIORITY_ORDER_SIZE_DELTA;
1754 if (_priorityOrder.length > maxPriorityOrderSize) { 1768 if (_priorityOrder.length > maxPriorityOrderSize) {
1755 List<Source> newPriorityOrder = new List<Source>(maxPriorityOrderSize); 1769 List<Source> newPriorityOrder = new List<Source>(maxPriorityOrderSize);
1756 JavaSystem.arraycopy(_priorityOrder, 0, newPriorityOrder, 0, maxPriority OrderSize); 1770 JavaSystem.arraycopy(_priorityOrder, 0, newPriorityOrder, 0, maxPriority OrderSize);
1757 _priorityOrder = newPriorityOrder; 1771 _priorityOrder = newPriorityOrder;
1758 } 1772 }
1759 } 1773 }
1774 this._options.analyzeAngular = options.analyzeAngular;
1760 this._options.analyzeFunctionBodies = options.analyzeFunctionBodies; 1775 this._options.analyzeFunctionBodies = options.analyzeFunctionBodies;
1761 this._options.generateSdkErrors = options.generateSdkErrors; 1776 this._options.generateSdkErrors = options.generateSdkErrors;
1762 this._options.enableDeferredLoading = options.enableDeferredLoading; 1777 this._options.enableDeferredLoading = options.enableDeferredLoading;
1763 this._options.dart2jsHint = options.dart2jsHint; 1778 this._options.dart2jsHint = options.dart2jsHint;
1764 this._options.hint = options.hint; 1779 this._options.hint = options.hint;
1765 this._options.incremental = options.incremental; 1780 this._options.incremental = options.incremental;
1766 this._options.preserveComments = options.preserveComments; 1781 this._options.preserveComments = options.preserveComments;
1767 _generateSdkErrors = options.generateSdkErrors; 1782 _generateSdkErrors = options.generateSdkErrors;
1768 if (needsRecompute) { 1783 if (needsRecompute) {
1769 _invalidateAllLocalResolutionInformation(); 1784 _invalidateAllLocalResolutionInformation();
(...skipping 1778 matching lines...) Expand 10 before | Expand all | Expand 10 after
3548 return; 3563 return;
3549 } 3564 }
3550 CacheState resolvedUnitState = dartEntry.getStateInLibrary(DartEntry.R ESOLVED_UNIT, librarySource); 3565 CacheState resolvedUnitState = dartEntry.getStateInLibrary(DartEntry.R ESOLVED_UNIT, librarySource);
3551 if (resolvedUnitState == CacheState.INVALID || (isPriority && resolved UnitState == CacheState.FLUSHED)) { 3566 if (resolvedUnitState == CacheState.INVALID || (isPriority && resolved UnitState == CacheState.FLUSHED)) {
3552 LibraryElement libraryElement = libraryEntry.getValue(DartEntry.ELEM ENT); 3567 LibraryElement libraryElement = libraryEntry.getValue(DartEntry.ELEM ENT);
3553 if (libraryElement != null) { 3568 if (libraryElement != null) {
3554 sources.add(source); 3569 sources.add(source);
3555 return; 3570 return;
3556 } 3571 }
3557 } 3572 }
3558 CacheState verificationErrorsState = dartEntry.getStateInLibrary(DartE ntry.VERIFICATION_ERRORS, librarySource); 3573 if (_generateSdkErrors || !source.isInSystemLibrary) {
3559 if (verificationErrorsState == CacheState.INVALID || (isPriority && ve rificationErrorsState == CacheState.FLUSHED)) { 3574 CacheState verificationErrorsState = dartEntry.getStateInLibrary(Dar tEntry.VERIFICATION_ERRORS, librarySource);
3560 LibraryElement libraryElement = libraryEntry.getValue(DartEntry.ELEM ENT); 3575 if (verificationErrorsState == CacheState.INVALID || (isPriority && verificationErrorsState == CacheState.FLUSHED)) {
3561 if (libraryElement != null) {
3562 sources.add(source);
3563 return;
3564 }
3565 }
3566 if (hintsEnabled) {
3567 CacheState hintsState = dartEntry.getStateInLibrary(DartEntry.HINTS, librarySource);
3568 if (hintsState == CacheState.INVALID || (isPriority && hintsState == CacheState.FLUSHED)) {
3569 LibraryElement libraryElement = libraryEntry.getValue(DartEntry.EL EMENT); 3576 LibraryElement libraryElement = libraryEntry.getValue(DartEntry.EL EMENT);
3570 if (libraryElement != null) { 3577 if (libraryElement != null) {
3571 sources.add(source); 3578 sources.add(source);
3572 return; 3579 return;
3573 } 3580 }
3574 } 3581 }
3582 if (hintsEnabled) {
3583 CacheState hintsState = dartEntry.getStateInLibrary(DartEntry.HINT S, librarySource);
3584 if (hintsState == CacheState.INVALID || (isPriority && hintsState == CacheState.FLUSHED)) {
3585 LibraryElement libraryElement = libraryEntry.getValue(DartEntry. ELEMENT);
3586 if (libraryElement != null) {
3587 sources.add(source);
3588 return;
3589 }
3590 }
3591 }
3575 } 3592 }
3576 } 3593 }
3577 } 3594 }
3578 } else if (sourceEntry is HtmlEntry) { 3595 } else if (sourceEntry is HtmlEntry) {
3579 HtmlEntry htmlEntry = sourceEntry; 3596 HtmlEntry htmlEntry = sourceEntry;
3580 CacheState parsedUnitState = htmlEntry.getState(HtmlEntry.PARSED_UNIT); 3597 CacheState parsedUnitState = htmlEntry.getState(HtmlEntry.PARSED_UNIT);
3581 if (parsedUnitState == CacheState.INVALID || (isPriority && parsedUnitStat e == CacheState.FLUSHED)) { 3598 if (parsedUnitState == CacheState.INVALID || (isPriority && parsedUnitStat e == CacheState.FLUSHED)) {
3582 sources.add(source); 3599 sources.add(source);
3583 return; 3600 return;
3584 } 3601 }
(...skipping 2045 matching lines...) Expand 10 before | Expand all | Expand 10 after
5630 * Ensure that there is a resolvable compilation unit available for all of the compilation units 5647 * Ensure that there is a resolvable compilation unit available for all of the compilation units
5631 * in the given library. 5648 * in the given library.
5632 * 5649 *
5633 * @param library the library for which resolvable compilation units must be a vailable 5650 * @param library the library for which resolvable compilation units must be a vailable
5634 * @return a list of (source, entry) pairs for all of the compilation units in the library 5651 * @return a list of (source, entry) pairs for all of the compilation units in the library
5635 */ 5652 */
5636 List<CycleBuilder_SourceEntryPair> _ensurePartsInLibrary(ResolvableLibrary lib rary) { 5653 List<CycleBuilder_SourceEntryPair> _ensurePartsInLibrary(ResolvableLibrary lib rary) {
5637 List<CycleBuilder_SourceEntryPair> pairs = new List<CycleBuilder_SourceEntry Pair>(); 5654 List<CycleBuilder_SourceEntryPair> pairs = new List<CycleBuilder_SourceEntry Pair>();
5638 Source librarySource = library.librarySource; 5655 Source librarySource = library.librarySource;
5639 DartEntry libraryEntry = AnalysisContextImpl_this._getReadableDartEntry(libr arySource); 5656 DartEntry libraryEntry = AnalysisContextImpl_this._getReadableDartEntry(libr arySource);
5640 _ensureResolvableCompilationUnit(librarySource, libraryEntry); 5657 if (libraryEntry != null && libraryEntry.getState(DartEntry.PARSED_UNIT) != CacheState.ERROR) {
5641 pairs.add(new CycleBuilder_SourceEntryPair(librarySource, libraryEntry)); 5658 _ensureResolvableCompilationUnit(librarySource, libraryEntry);
5642 List<Source> partSources = _getSources(librarySource, libraryEntry, DartEntr y.INCLUDED_PARTS); 5659 pairs.add(new CycleBuilder_SourceEntryPair(librarySource, libraryEntry));
5643 int count = partSources.length; 5660 List<Source> partSources = _getSources(librarySource, libraryEntry, DartEn try.INCLUDED_PARTS);
5644 for (int i = 0; i < count; i++) { 5661 int count = partSources.length;
5645 Source partSource = partSources[i]; 5662 for (int i = 0; i < count; i++) {
5646 DartEntry partEntry = AnalysisContextImpl_this._getReadableDartEntry(partS ource); 5663 Source partSource = partSources[i];
5647 if (partEntry != null && partEntry.getState(DartEntry.PARSED_UNIT) != Cach eState.ERROR) { 5664 DartEntry partEntry = AnalysisContextImpl_this._getReadableDartEntry(par tSource);
5648 _ensureResolvableCompilationUnit(partSource, partEntry); 5665 if (partEntry != null && partEntry.getState(DartEntry.PARSED_UNIT) != Ca cheState.ERROR) {
5649 pairs.add(new CycleBuilder_SourceEntryPair(partSource, partEntry)); 5666 _ensureResolvableCompilationUnit(partSource, partEntry);
5667 pairs.add(new CycleBuilder_SourceEntryPair(partSource, partEntry));
5668 }
5650 } 5669 }
5651 } 5670 }
5652 return pairs; 5671 return pairs;
5653 } 5672 }
5654 5673
5655 /** 5674 /**
5656 * Ensure that there is a resolvable compilation unit available for the given source. 5675 * Ensure that there is a resolvable compilation unit available for the given source.
5657 * 5676 *
5658 * @param source the source for which a resolvable compilation unit must be av ailable 5677 * @param source the source for which a resolvable compilation unit must be av ailable
5659 * @param dartEntry the entry associated with the source 5678 * @param dartEntry the entry associated with the source
(...skipping 2751 matching lines...) Expand 10 before | Expand all | Expand 10 after
8411 * @param offset the offset into the current contents 8430 * @param offset the offset into the current contents
8412 * @param oldLength the number of characters in the original contents that wer e replaced 8431 * @param oldLength the number of characters in the original contents that wer e replaced
8413 * @param newLength the number of characters in the replacement text 8432 * @param newLength the number of characters in the replacement text
8414 */ 8433 */
8415 void changedRange(Source source, String contents, int offset, int oldLength, i nt newLength) { 8434 void changedRange(Source source, String contents, int offset, int oldLength, i nt newLength) {
8416 changedRanges[source] = new ChangeSet_ContentChange(contents, offset, oldLen gth, newLength); 8435 changedRanges[source] = new ChangeSet_ContentChange(contents, offset, oldLen gth, newLength);
8417 } 8436 }
8418 8437
8419 /** 8438 /**
8420 * Record that the specified source has been changed. If the content of the so urce was previously 8439 * Record that the specified source has been changed. If the content of the so urce was previously
8421 * overridden, use [changedContent] instead. 8440 * overridden, this has no effect (the content remains overridden). To cancel (or change) the
8441 * override, use [changedContent] instead.
8422 * 8442 *
8423 * @param source the source that was changed 8443 * @param source the source that was changed
8424 */ 8444 */
8425 void changedSource(Source source) { 8445 void changedSource(Source source) {
8426 changedSources.add(source); 8446 changedSources.add(source);
8427 } 8447 }
8428 8448
8429 /** 8449 /**
8430 * Record that the specified source has been deleted. 8450 * Record that the specified source has been deleted.
8431 * 8451 *
(...skipping 3542 matching lines...) Expand 10 before | Expand all | Expand 10 after
11974 _checkThread(instrumentation); 11994 _checkThread(instrumentation);
11975 try { 11995 try {
11976 instrumentation.metric3("contextId", _contextId); 11996 instrumentation.metric3("contextId", _contextId);
11977 return _basis.getModificationStamp(source); 11997 return _basis.getModificationStamp(source);
11978 } finally { 11998 } finally {
11979 instrumentation.log(); 11999 instrumentation.log();
11980 } 12000 }
11981 } 12001 }
11982 12002
11983 @override 12003 @override
12004 List<Source> get prioritySources {
12005 InstrumentationBuilder instrumentation = Instrumentation.builder2("Analysis- getPrioritySources");
12006 _checkThread(instrumentation);
12007 try {
12008 instrumentation.metric3("contextId", _contextId);
12009 return _basis.prioritySources;
12010 } finally {
12011 instrumentation.log();
12012 }
12013 }
12014
12015 @override
11984 Namespace getPublicNamespace(LibraryElement library) => _basis.getPublicNamesp ace(library); 12016 Namespace getPublicNamespace(LibraryElement library) => _basis.getPublicNamesp ace(library);
11985 12017
11986 @override 12018 @override
11987 List<Source> get refactoringUnsafeSources { 12019 List<Source> get refactoringUnsafeSources {
11988 InstrumentationBuilder instrumentation = Instrumentation.builder2("Analysis- getRefactoringUnsafeSources"); 12020 InstrumentationBuilder instrumentation = Instrumentation.builder2("Analysis- getRefactoringUnsafeSources");
11989 _checkThread(instrumentation); 12021 _checkThread(instrumentation);
11990 try { 12022 try {
11991 instrumentation.metric3("contextId", _contextId); 12023 instrumentation.metric3("contextId", _contextId);
11992 return _basis.refactoringUnsafeSources; 12024 return _basis.refactoringUnsafeSources;
11993 } finally { 12025 } finally {
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
12309 * them to the specified context. 12341 * them to the specified context.
12310 * 12342 *
12311 * @param container the container containing sources that should be removed fr om this context and 12343 * @param container the container containing sources that should be removed fr om this context and
12312 * added to the returned context 12344 * added to the returned context
12313 * @param newContext the context to be initialized 12345 * @param newContext the context to be initialized
12314 * @return the analysis context that was initialized 12346 * @return the analysis context that was initialized
12315 */ 12347 */
12316 InternalAnalysisContext extractContextInto(SourceContainer container, Internal AnalysisContext newContext); 12348 InternalAnalysisContext extractContextInto(SourceContainer container, Internal AnalysisContext newContext);
12317 12349
12318 /** 12350 /**
12351 * Return an array containing all of the sources that have been marked as prio rity sources.
12352 * Clients must not modify the returned array.
12353 *
12354 * @return the sources that have been marked as priority sources
12355 */
12356 List<Source> get prioritySources;
12357
12358 /**
12319 * Return a namespace containing mappings for all of the public names defined by the given 12359 * Return a namespace containing mappings for all of the public names defined by the given
12320 * library. 12360 * library.
12321 * 12361 *
12322 * @param library the library whose public namespace is to be returned 12362 * @param library the library whose public namespace is to be returned
12323 * @return the public namespace of the given library 12363 * @return the public namespace of the given library
12324 */ 12364 */
12325 Namespace getPublicNamespace(LibraryElement library); 12365 Namespace getPublicNamespace(LibraryElement library);
12326 12366
12327 /** 12367 /**
12328 * Returns a statistics about this context. 12368 * Returns a statistics about this context.
(...skipping 3039 matching lines...) Expand 10 before | Expand all | Expand 10 after
15368 _index++; 15408 _index++;
15369 if (_index >= WorkManager_this._workQueues[_queueIndex].length) { 15409 if (_index >= WorkManager_this._workQueues[_queueIndex].length) {
15370 _index = 0; 15410 _index = 0;
15371 _queueIndex++; 15411 _queueIndex++;
15372 while (_queueIndex < WorkManager_this._workQueues.length && WorkManager_th is._workQueues[_queueIndex].isEmpty) { 15412 while (_queueIndex < WorkManager_this._workQueues.length && WorkManager_th is._workQueues[_queueIndex].isEmpty) {
15373 _queueIndex++; 15413 _queueIndex++;
15374 } 15414 }
15375 } 15415 }
15376 } 15416 }
15377 } 15417 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/element.dart ('k') | pkg/analyzer/lib/src/generated/error.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698