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

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

Issue 624403002: Write end-of-block comments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after
1440 // either directly or indirectly. 1440 // either directly or indirectly.
1441 List<Source> sources = new List<Source>(); 1441 List<Source> sources = new List<Source>();
1442 MapIterator<Source, SourceEntry> iterator = _cache.iterator(); 1442 MapIterator<Source, SourceEntry> iterator = _cache.iterator();
1443 while (iterator.moveNext()) { 1443 while (iterator.moveNext()) {
1444 Source source = iterator.key; 1444 Source source = iterator.key;
1445 SourceEntry sourceEntry = iterator.value; 1445 SourceEntry sourceEntry = iterator.value;
1446 if (sourceEntry.kind == SourceKind.LIBRARY && !source.isInSystemLibrary) { 1446 if (sourceEntry.kind == SourceKind.LIBRARY && !source.isInSystemLibrary) {
1447 // DartEntry dartEntry = (DartEntry) sourceEntry; 1447 // DartEntry dartEntry = (DartEntry) sourceEntry;
1448 // if (dartEntry.getValue(DartEntry.IS_LAUNCHABLE) && dartEntry .getValue(DartEntry.IS_CLIENT)) { 1448 // if (dartEntry.getValue(DartEntry.IS_LAUNCHABLE) && dartEntry .getValue(DartEntry.IS_CLIENT)) {
1449 sources.add(source); 1449 sources.add(source);
1450 // }
1450 } 1451 }
1451 } 1452 }
1452 return new List.from(sources); 1453 return new List.from(sources);
1453 } 1454 }
1454 1455
1455 @override 1456 @override
1456 List<Source> get launchableServerLibrarySources { 1457 List<Source> get launchableServerLibrarySources {
1457 // TODO(brianwilkerson) This needs to filter out libraries that reference da rt:html, either 1458 // TODO(brianwilkerson) This needs to filter out libraries that reference da rt:html, either
1458 // directly or indirectly. 1459 // directly or indirectly.
1459 List<Source> sources = new List<Source>(); 1460 List<Source> sources = new List<Source>();
1460 MapIterator<Source, SourceEntry> iterator = _cache.iterator(); 1461 MapIterator<Source, SourceEntry> iterator = _cache.iterator();
1461 while (iterator.moveNext()) { 1462 while (iterator.moveNext()) {
1462 Source source = iterator.key; 1463 Source source = iterator.key;
1463 SourceEntry sourceEntry = iterator.value; 1464 SourceEntry sourceEntry = iterator.value;
1464 if (sourceEntry.kind == SourceKind.LIBRARY && !source.isInSystemLibrary) { 1465 if (sourceEntry.kind == SourceKind.LIBRARY && !source.isInSystemLibrary) {
1465 // DartEntry dartEntry = (DartEntry) sourceEntry; 1466 // DartEntry dartEntry = (DartEntry) sourceEntry;
1466 // if (dartEntry.getValue(DartEntry.IS_LAUNCHABLE) && !dartEntr y.getValue(DartEntry.IS_CLIENT)) { 1467 // if (dartEntry.getValue(DartEntry.IS_LAUNCHABLE) && !dartEntr y.getValue(DartEntry.IS_CLIENT)) {
1467 sources.add(source); 1468 sources.add(source);
1469 // }
1468 } 1470 }
1469 } 1471 }
1470 return new List.from(sources); 1472 return new List.from(sources);
1471 } 1473 }
1472 1474
1473 @override 1475 @override
1474 List<Source> getLibrariesContaining(Source source) { 1476 List<Source> getLibrariesContaining(Source source) {
1475 SourceEntry sourceEntry = _getReadableSourceEntryOrNull(source); 1477 SourceEntry sourceEntry = _getReadableSourceEntryOrNull(source);
1476 if (sourceEntry is DartEntry) { 1478 if (sourceEntry is DartEntry) {
1477 return sourceEntry.getValue(DartEntry.CONTAINING_LIBRARIES); 1479 return sourceEntry.getValue(DartEntry.CONTAINING_LIBRARIES);
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
1661 statistics.putCacheItem(dartEntry, DartEntry.PARSE_ERRORS); 1663 statistics.putCacheItem(dartEntry, DartEntry.PARSE_ERRORS);
1662 statistics.putCacheItem(dartEntry, DartEntry.PARSED_UNIT); 1664 statistics.putCacheItem(dartEntry, DartEntry.PARSED_UNIT);
1663 statistics.putCacheItem(dartEntry, DartEntry.SOURCE_KIND); 1665 statistics.putCacheItem(dartEntry, DartEntry.SOURCE_KIND);
1664 if (kind == SourceKind.LIBRARY) { 1666 if (kind == SourceKind.LIBRARY) {
1665 statistics.putCacheItem(dartEntry, DartEntry.ELEMENT); 1667 statistics.putCacheItem(dartEntry, DartEntry.ELEMENT);
1666 statistics.putCacheItem(dartEntry, DartEntry.EXPORTED_LIBRARIES); 1668 statistics.putCacheItem(dartEntry, DartEntry.EXPORTED_LIBRARIES);
1667 statistics.putCacheItem(dartEntry, DartEntry.IMPORTED_LIBRARIES); 1669 statistics.putCacheItem(dartEntry, DartEntry.IMPORTED_LIBRARIES);
1668 statistics.putCacheItem(dartEntry, DartEntry.INCLUDED_PARTS); 1670 statistics.putCacheItem(dartEntry, DartEntry.INCLUDED_PARTS);
1669 statistics.putCacheItem(dartEntry, DartEntry.IS_CLIENT); 1671 statistics.putCacheItem(dartEntry, DartEntry.IS_CLIENT);
1670 statistics.putCacheItem(dartEntry, DartEntry.IS_LAUNCHABLE); 1672 statistics.putCacheItem(dartEntry, DartEntry.IS_LAUNCHABLE);
1673 // The public namespace isn't computed by performAnalysisTask() and th erefore isn't
1674 // interesting.
1675 //statistics.putCacheItem(dartEntry, DartEntry.PUBLIC_NAMESPACE);
1671 } 1676 }
1672 // get library-specific values 1677 // get library-specific values
1673 List<Source> librarySources = getLibrariesContaining(source); 1678 List<Source> librarySources = getLibrariesContaining(source);
1674 for (Source librarySource in librarySources) { 1679 for (Source librarySource in librarySources) {
1675 statistics.putCacheItemInLibrary(dartEntry, librarySource, DartEntry.R ESOLUTION_ERRORS); 1680 statistics.putCacheItemInLibrary(dartEntry, librarySource, DartEntry.R ESOLUTION_ERRORS);
1676 statistics.putCacheItemInLibrary(dartEntry, librarySource, DartEntry.R ESOLVED_UNIT); 1681 statistics.putCacheItemInLibrary(dartEntry, librarySource, DartEntry.R ESOLVED_UNIT);
1677 if (_generateSdkErrors || !source.isInSystemLibrary) { 1682 if (_generateSdkErrors || !source.isInSystemLibrary) {
1678 statistics.putCacheItemInLibrary(dartEntry, librarySource, DartEntry .VERIFICATION_ERRORS); 1683 statistics.putCacheItemInLibrary(dartEntry, librarySource, DartEntry .VERIFICATION_ERRORS);
1679 if (hintsEnabled) { 1684 if (hintsEnabled) {
1680 statistics.putCacheItemInLibrary(dartEntry, librarySource, DartEnt ry.HINTS); 1685 statistics.putCacheItemInLibrary(dartEntry, librarySource, DartEnt ry.HINTS);
1681 } 1686 }
1682 } 1687 }
1683 } 1688 }
1684 } else if (sourceEntry is HtmlEntry) { 1689 } else if (sourceEntry is HtmlEntry) {
1685 HtmlEntry htmlEntry = sourceEntry; 1690 HtmlEntry htmlEntry = sourceEntry;
1686 statistics.putCacheItem(htmlEntry, SourceEntry.LINE_INFO); 1691 statistics.putCacheItem(htmlEntry, SourceEntry.LINE_INFO);
1687 statistics.putCacheItem(htmlEntry, HtmlEntry.PARSE_ERRORS); 1692 statistics.putCacheItem(htmlEntry, HtmlEntry.PARSE_ERRORS);
1688 statistics.putCacheItem(htmlEntry, HtmlEntry.PARSED_UNIT); 1693 statistics.putCacheItem(htmlEntry, HtmlEntry.PARSED_UNIT);
1689 statistics.putCacheItem(htmlEntry, HtmlEntry.RESOLUTION_ERRORS); 1694 statistics.putCacheItem(htmlEntry, HtmlEntry.RESOLUTION_ERRORS);
1690 statistics.putCacheItem(htmlEntry, HtmlEntry.RESOLVED_UNIT); 1695 statistics.putCacheItem(htmlEntry, HtmlEntry.RESOLVED_UNIT);
1696 // We are not currently recording any hints related to HTML.
1697 // statistics.putCacheItem(htmlEntry, HtmlEntry.HINTS);
1691 } 1698 }
1692 } 1699 }
1693 statistics.partitionData = _cache.partitionData; 1700 statistics.partitionData = _cache.partitionData;
1694 return statistics; 1701 return statistics;
1695 } 1702 }
1696 1703
1697 @override 1704 @override
1698 TypeProvider get typeProvider { 1705 TypeProvider get typeProvider {
1699 Source coreSource = sourceFactory.forUri(DartSdk.DART_CORE); 1706 Source coreSource = sourceFactory.forUri(DartSdk.DART_CORE);
1700 if (coreSource == null) { 1707 if (coreSource == null) {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
1740 } 1747 }
1741 // TODO(brianwilkerson) This does not lock against the other context's cache Lock. 1748 // TODO(brianwilkerson) This does not lock against the other context's cache Lock.
1742 MapIterator<Source, SourceEntry> iterator = _cache.iterator(); 1749 MapIterator<Source, SourceEntry> iterator = _cache.iterator();
1743 while (iterator.moveNext()) { 1750 while (iterator.moveNext()) {
1744 Source newSource = iterator.key; 1751 Source newSource = iterator.key;
1745 SourceEntry existingEntry = _getReadableSourceEntry(newSource); 1752 SourceEntry existingEntry = _getReadableSourceEntry(newSource);
1746 if (existingEntry == null) { 1753 if (existingEntry == null) {
1747 // TODO(brianwilkerson) Decide whether we really need to copy the info. 1754 // TODO(brianwilkerson) Decide whether we really need to copy the info.
1748 _cache.put(newSource, iterator.value.writableCopy); 1755 _cache.put(newSource, iterator.value.writableCopy);
1749 } else { 1756 } else {
1757 // TODO(brianwilkerson) Decide whether/how to merge the entries.
1750 } 1758 }
1751 } 1759 }
1752 } 1760 }
1753 1761
1754 @override 1762 @override
1755 CompilationUnit parseCompilationUnit(Source source) => _getDartParseData2(sour ce, DartEntry.PARSED_UNIT, null); 1763 CompilationUnit parseCompilationUnit(Source source) => _getDartParseData2(sour ce, DartEntry.PARSED_UNIT, null);
1756 1764
1757 @override 1765 @override
1758 ht.HtmlUnit parseHtmlUnit(Source source) => _getHtmlParseData(source, HtmlEntr y.PARSED_UNIT, null); 1766 ht.HtmlUnit parseHtmlUnit(Source source) => _getHtmlParseData(source, HtmlEntr y.PARSED_UNIT, null);
1759 1767
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
1911 _invalidateAllLocalResolutionInformation(false); 1919 _invalidateAllLocalResolutionInformation(false);
1912 } 1920 }
1913 } 1921 }
1914 1922
1915 @override 1923 @override
1916 void set analysisPriorityOrder(List<Source> sources) { 1924 void set analysisPriorityOrder(List<Source> sources) {
1917 if (sources == null || sources.isEmpty) { 1925 if (sources == null || sources.isEmpty) {
1918 _priorityOrder = Source.EMPTY_ARRAY; 1926 _priorityOrder = Source.EMPTY_ARRAY;
1919 } else { 1927 } else {
1920 while (sources.remove(null)) { 1928 while (sources.remove(null)) {
1929 // Nothing else to do.
1921 } 1930 }
1922 if (sources.isEmpty) { 1931 if (sources.isEmpty) {
1923 _priorityOrder = Source.EMPTY_ARRAY; 1932 _priorityOrder = Source.EMPTY_ARRAY;
1924 } 1933 }
1925 // 1934 //
1926 // Cap the size of the priority list to being less than the cache size. Fa ilure to do so can 1935 // Cap the size of the priority list to being less than the cache size. Fa ilure to do so can
1927 // result in an infinite loop in performAnalysisTask() because re-caching one AST structure 1936 // result in an infinite loop in performAnalysisTask() because re-caching one AST structure
1928 // can cause another priority source's AST structure to be flushed. 1937 // can cause another priority source's AST structure to be flushed.
1929 // 1938 //
1930 int count = Math.min(sources.length, _options.cacheSize - _PRIORITY_ORDER_ SIZE_DELTA); 1939 int count = Math.min(sources.length, _options.cacheSize - _PRIORITY_ORDER_ SIZE_DELTA);
(...skipping 10073 matching lines...) Expand 10 before | Expand all | Expand 10 after
12004 _checkThread(instrumentation); 12013 _checkThread(instrumentation);
12005 try { 12014 try {
12006 instrumentation.metric3("contextId", _contextId); 12015 instrumentation.metric3("contextId", _contextId);
12007 List<Source> ret = _basis.getLibrariesContaining(source); 12016 List<Source> ret = _basis.getLibrariesContaining(source);
12008 if (ret != null) { 12017 if (ret != null) {
12009 instrumentation.metric2("Source-count", ret.length); 12018 instrumentation.metric2("Source-count", ret.length);
12010 } 12019 }
12011 return ret; 12020 return ret;
12012 } finally { 12021 } finally {
12013 instrumentation.log2(2); 12022 instrumentation.log2(2);
12023 //Log if 1ms
12014 } 12024 }
12015 } 12025 }
12016 12026
12017 @override 12027 @override
12018 List<Source> getLibrariesDependingOn(Source librarySource) { 12028 List<Source> getLibrariesDependingOn(Source librarySource) {
12019 InstrumentationBuilder instrumentation = Instrumentation.builder2("Analysis- getLibrariesDependingOn"); 12029 InstrumentationBuilder instrumentation = Instrumentation.builder2("Analysis- getLibrariesDependingOn");
12020 _checkThread(instrumentation); 12030 _checkThread(instrumentation);
12021 try { 12031 try {
12022 instrumentation.metric3("contextId", _contextId); 12032 instrumentation.metric3("contextId", _contextId);
12023 List<Source> ret = _basis.getLibrariesDependingOn(librarySource); 12033 List<Source> ret = _basis.getLibrariesDependingOn(librarySource);
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
12135 12145
12136 @override 12146 @override
12137 CompilationUnit getResolvedCompilationUnit2(Source unitSource, Source libraryS ource) { 12147 CompilationUnit getResolvedCompilationUnit2(Source unitSource, Source libraryS ource) {
12138 InstrumentationBuilder instrumentation = Instrumentation.builder2("Analysis- getResolvedCompilationUnit"); 12148 InstrumentationBuilder instrumentation = Instrumentation.builder2("Analysis- getResolvedCompilationUnit");
12139 _checkThread(instrumentation); 12149 _checkThread(instrumentation);
12140 try { 12150 try {
12141 instrumentation.metric3("contextId", _contextId); 12151 instrumentation.metric3("contextId", _contextId);
12142 return _basis.getResolvedCompilationUnit2(unitSource, librarySource); 12152 return _basis.getResolvedCompilationUnit2(unitSource, librarySource);
12143 } finally { 12153 } finally {
12144 instrumentation.log2(2); 12154 instrumentation.log2(2);
12155 //Log if over 1ms
12145 } 12156 }
12146 } 12157 }
12147 12158
12148 @override 12159 @override
12149 ht.HtmlUnit getResolvedHtmlUnit(Source htmlSource) { 12160 ht.HtmlUnit getResolvedHtmlUnit(Source htmlSource) {
12150 InstrumentationBuilder instrumentation = Instrumentation.builder2("Analysis- getResolvedHtmlUnit"); 12161 InstrumentationBuilder instrumentation = Instrumentation.builder2("Analysis- getResolvedHtmlUnit");
12151 _checkThread(instrumentation); 12162 _checkThread(instrumentation);
12152 try { 12163 try {
12153 instrumentation.metric3("contextId", _contextId); 12164 instrumentation.metric3("contextId", _contextId);
12154 return _basis.getResolvedHtmlUnit(htmlSource); 12165 return _basis.getResolvedHtmlUnit(htmlSource);
12155 } finally { 12166 } finally {
12156 instrumentation.log2(2); 12167 instrumentation.log2(2);
12168 //Log if over 1ms
12157 } 12169 }
12158 } 12170 }
12159 12171
12160 @override 12172 @override
12161 SourceFactory get sourceFactory { 12173 SourceFactory get sourceFactory {
12162 InstrumentationBuilder instrumentation = Instrumentation.builder2("Analysis- getSourceFactory"); 12174 InstrumentationBuilder instrumentation = Instrumentation.builder2("Analysis- getSourceFactory");
12163 try { 12175 try {
12164 instrumentation.metric3("contextId", _contextId); 12176 instrumentation.metric3("contextId", _contextId);
12165 return _basis.sourceFactory; 12177 return _basis.sourceFactory;
12166 } finally { 12178 } finally {
12167 instrumentation.log2(2); 12179 instrumentation.log2(2);
12180 //Log if over 1ms
12168 } 12181 }
12169 } 12182 }
12170 12183
12171 @override 12184 @override
12172 AnalysisContextStatistics get statistics => _basis.statistics; 12185 AnalysisContextStatistics get statistics => _basis.statistics;
12173 12186
12174 @override 12187 @override
12175 TypeProvider get typeProvider => _basis.typeProvider; 12188 TypeProvider get typeProvider => _basis.typeProvider;
12176 12189
12177 @override 12190 @override
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
12261 _checkThread(instrumentation); 12274 _checkThread(instrumentation);
12262 try { 12275 try {
12263 instrumentation.metric3("contextId", _contextId); 12276 instrumentation.metric3("contextId", _contextId);
12264 AnalysisResult result = _basis.performAnalysisTask(); 12277 AnalysisResult result = _basis.performAnalysisTask();
12265 if (result.changeNotices != null) { 12278 if (result.changeNotices != null) {
12266 instrumentation.metric2("ChangeNotice-count", result.changeNotices.lengt h); 12279 instrumentation.metric2("ChangeNotice-count", result.changeNotices.lengt h);
12267 } 12280 }
12268 return result; 12281 return result;
12269 } finally { 12282 } finally {
12270 instrumentation.log2(15); 12283 instrumentation.log2(15);
12284 //Log if >= 15ms
12271 } 12285 }
12272 } 12286 }
12273 12287
12274 @override 12288 @override
12275 void recordLibraryElements(Map<Source, LibraryElement> elementMap) { 12289 void recordLibraryElements(Map<Source, LibraryElement> elementMap) {
12276 _basis.recordLibraryElements(elementMap); 12290 _basis.recordLibraryElements(elementMap);
12277 } 12291 }
12278 12292
12279 @override 12293 @override
12280 void removeListener(AnalysisListener listener) { 12294 void removeListener(AnalysisListener listener) {
(...skipping 1446 matching lines...) Expand 10 before | Expand all | Expand 10 after
13727 final ht.HtmlUnit _unit; 13741 final ht.HtmlUnit _unit;
13728 13742
13729 PolymerHtmlUnitResolver(this._context, this._errorListener, this._source, this ._lineInfo, this._unit) { 13743 PolymerHtmlUnitResolver(this._context, this._errorListener, this._source, this ._lineInfo, this._unit) {
13730 this._typeProvider = _context.typeProvider; 13744 this._typeProvider = _context.typeProvider;
13731 } 13745 }
13732 13746
13733 /** 13747 /**
13734 * Resolves Polymer specific features. 13748 * Resolves Polymer specific features.
13735 */ 13749 */
13736 void resolveUnit() { 13750 void resolveUnit() {
13751 // TODO(scheglov) implement it
13752 // unit.accept(this);
13737 } 13753 }
13738 13754
13739 @override 13755 @override
13740 Object visitXmlAttributeNode(ht.XmlAttributeNode node) => super.visitXmlAttrib uteNode(node); 13756 Object visitXmlAttributeNode(ht.XmlAttributeNode node) => super.visitXmlAttrib uteNode(node);
13741 13757
13742 @override 13758 @override
13743 Object visitXmlTagNode(ht.XmlTagNode node) => super.visitXmlTagNode(node); 13759 Object visitXmlTagNode(ht.XmlTagNode node) => super.visitXmlTagNode(node);
13744 } 13760 }
13745 13761
13746 /** 13762 /**
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
13926 } 13942 }
13927 if (scriptAttribute != null) { 13943 if (scriptAttribute != null) {
13928 try { 13944 try {
13929 Uri uri = new Uri(path: scriptAttribute.text); 13945 Uri uri = new Uri(path: scriptAttribute.text);
13930 String fileName = uri.path; 13946 String fileName = uri.path;
13931 Source librarySource = ParseHtmlTask_this.context.sourceFactory.resolveU ri(ParseHtmlTask_this.source, fileName); 13947 Source librarySource = ParseHtmlTask_this.context.sourceFactory.resolveU ri(ParseHtmlTask_this.source, fileName);
13932 if (ParseHtmlTask_this.context.exists(librarySource)) { 13948 if (ParseHtmlTask_this.context.exists(librarySource)) {
13933 libraries.add(librarySource); 13949 libraries.add(librarySource);
13934 } 13950 }
13935 } on URISyntaxException catch (e) { 13951 } on URISyntaxException catch (e) {
13952 // ignored - invalid URI reported during resolution phase
13936 } 13953 }
13937 } 13954 }
13938 return super.visitHtmlScriptTagNode(node); 13955 return super.visitHtmlScriptTagNode(node);
13939 } 13956 }
13940 } 13957 }
13941 13958
13942 class RecursiveXmlVisitor_ParseHtmlTask_internalPerform extends ht.RecursiveXmlV isitor<Object> { 13959 class RecursiveXmlVisitor_ParseHtmlTask_internalPerform extends ht.RecursiveXmlV isitor<Object> {
13943 final ParseHtmlTask ParseHtmlTask_this; 13960 final ParseHtmlTask ParseHtmlTask_this;
13944 13961
13945 RecordingErrorListener errorListener; 13962 RecordingErrorListener errorListener;
(...skipping 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after
15417 WaitForAsyncTask() : super(null); 15434 WaitForAsyncTask() : super(null);
15418 15435
15419 @override 15436 @override
15420 accept(AnalysisTaskVisitor visitor) => null; 15437 accept(AnalysisTaskVisitor visitor) => null;
15421 15438
15422 @override 15439 @override
15423 String get taskDescription => "Waiting for async analysis"; 15440 String get taskDescription => "Waiting for async analysis";
15424 15441
15425 @override 15442 @override
15426 void internalPerform() { 15443 void internalPerform() {
15444 // There is no work to be done.
15427 } 15445 }
15428 } 15446 }
15429 15447
15430 /** 15448 /**
15431 * Instances of the class `WorkManager` manage a list of sources that need to ha ve analysis 15449 * Instances of the class `WorkManager` manage a list of sources that need to ha ve analysis
15432 * work performed on them. 15450 * work performed on them.
15433 */ 15451 */
15434 class WorkManager { 15452 class WorkManager {
15435 /** 15453 /**
15436 * An array containing the various queues is priority order. 15454 * An array containing the various queues is priority order.
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
15602 _index++; 15620 _index++;
15603 if (_index >= WorkManager_this._workQueues[_queueIndex].length) { 15621 if (_index >= WorkManager_this._workQueues[_queueIndex].length) {
15604 _index = 0; 15622 _index = 0;
15605 _queueIndex++; 15623 _queueIndex++;
15606 while (_queueIndex < WorkManager_this._workQueues.length && WorkManager_th is._workQueues[_queueIndex].isEmpty) { 15624 while (_queueIndex < WorkManager_this._workQueues.length && WorkManager_th is._workQueues[_queueIndex].isEmpty) {
15607 _queueIndex++; 15625 _queueIndex++;
15608 } 15626 }
15609 } 15627 }
15610 } 15628 }
15611 } 15629 }
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