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

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

Issue 685123006: Status page improvements (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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/analysis_server/lib/src/get_handler.dart ('k') | no next file » | 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 1617 matching lines...) Expand 10 before | Expand all | Expand 10 after
1628 1628
1629 bool hintsEnabled = _options.hint; 1629 bool hintsEnabled = _options.hint;
1630 MapIterator<Source, SourceEntry> iterator = _cache.iterator(); 1630 MapIterator<Source, SourceEntry> iterator = _cache.iterator();
1631 while (iterator.moveNext()) { 1631 while (iterator.moveNext()) {
1632 Source source = iterator.key; 1632 Source source = iterator.key;
1633 SourceEntry sourceEntry = iterator.value; 1633 SourceEntry sourceEntry = iterator.value;
1634 if (sourceEntry is DartEntry) { 1634 if (sourceEntry is DartEntry) {
1635 DartEntry dartEntry = sourceEntry; 1635 DartEntry dartEntry = sourceEntry;
1636 SourceKind kind = dartEntry.getValue(DartEntry.SOURCE_KIND); 1636 SourceKind kind = dartEntry.getValue(DartEntry.SOURCE_KIND);
1637 // get library independent values 1637 // get library independent values
1638 handleCacheItem(source, dartEntry, SourceEntry.CONTENT);
1638 handleCacheItem(source, dartEntry, SourceEntry.LINE_INFO); 1639 handleCacheItem(source, dartEntry, SourceEntry.LINE_INFO);
1640 // handleCacheItem(source, dartEntry, DartEntry.CONTAINING_LIBRARIES);
Paul Berry 2014/10/30 17:36:52 It would be nice to have a comment explaining why
Brian Wilkerson 2014/10/30 21:06:59 Done
1639 handleCacheItem(source, dartEntry, DartEntry.PARSE_ERRORS); 1641 handleCacheItem(source, dartEntry, DartEntry.PARSE_ERRORS);
1640 handleCacheItem(source, dartEntry, DartEntry.PARSED_UNIT); 1642 handleCacheItem(source, dartEntry, DartEntry.PARSED_UNIT);
1643 handleCacheItem(source, dartEntry, DartEntry.SCAN_ERRORS);
1641 handleCacheItem(source, dartEntry, DartEntry.SOURCE_KIND); 1644 handleCacheItem(source, dartEntry, DartEntry.SOURCE_KIND);
1645 handleCacheItem(source, dartEntry, DartEntry.TOKEN_STREAM);
1642 if (kind == SourceKind.LIBRARY) { 1646 if (kind == SourceKind.LIBRARY) {
1643 handleCacheItem(source, dartEntry, DartEntry.ELEMENT); 1647 handleCacheItem(source, dartEntry, DartEntry.ELEMENT);
1644 handleCacheItem(source, dartEntry, DartEntry.EXPORTED_LIBRARIES); 1648 handleCacheItem(source, dartEntry, DartEntry.EXPORTED_LIBRARIES);
1645 handleCacheItem(source, dartEntry, DartEntry.IMPORTED_LIBRARIES); 1649 handleCacheItem(source, dartEntry, DartEntry.IMPORTED_LIBRARIES);
1646 handleCacheItem(source, dartEntry, DartEntry.INCLUDED_PARTS); 1650 handleCacheItem(source, dartEntry, DartEntry.INCLUDED_PARTS);
1647 handleCacheItem(source, dartEntry, DartEntry.IS_CLIENT); 1651 handleCacheItem(source, dartEntry, DartEntry.IS_CLIENT);
1648 handleCacheItem(source, dartEntry, DartEntry.IS_LAUNCHABLE); 1652 handleCacheItem(source, dartEntry, DartEntry.IS_LAUNCHABLE);
1649 // The public namespace isn't computed by performAnalysisTask() and th erefore isn't 1653 // The public namespace isn't computed by performAnalysisTask()
1650 // interesting. 1654 // and therefore isn't interesting.
1651 //handleCacheItem(key, dartEntry, DartEntry.PUBLIC_NAMESPACE); 1655 //handleCacheItem(key, dartEntry, DartEntry.PUBLIC_NAMESPACE);
1652 } 1656 }
1653 // get library-specific values 1657 // get library-specific values
1654 List<Source> librarySources = getLibrariesContaining(source); 1658 List<Source> librarySources = getLibrariesContaining(source);
1655 for (Source librarySource in librarySources) { 1659 for (Source librarySource in librarySources) {
1660 // handleCacheItemInLibrary(dartEntry, librarySource, DartEntry.ANGULAR _ERRORS);
1661 // handleCacheItemInLibrary(dartEntry, librarySource, DartEntry.BUILT_E LEMENT);
1662 // handleCacheItemInLibrary(dartEntry, librarySource, DartEntry.BUILT_U NIT);
1656 handleCacheItemInLibrary(dartEntry, librarySource, DartEntry.RESOLUTIO N_ERRORS); 1663 handleCacheItemInLibrary(dartEntry, librarySource, DartEntry.RESOLUTIO N_ERRORS);
1657 handleCacheItemInLibrary(dartEntry, librarySource, DartEntry.RESOLVED_ UNIT); 1664 handleCacheItemInLibrary(dartEntry, librarySource, DartEntry.RESOLVED_ UNIT);
1658 if (_generateSdkErrors || !source.isInSystemLibrary) { 1665 if (_generateSdkErrors || !source.isInSystemLibrary) {
1659 handleCacheItemInLibrary(dartEntry, librarySource, DartEntry.VERIFIC ATION_ERRORS); 1666 handleCacheItemInLibrary(dartEntry, librarySource, DartEntry.VERIFIC ATION_ERRORS);
1660 if (hintsEnabled) { 1667 if (hintsEnabled) {
1661 handleCacheItemInLibrary(dartEntry, librarySource, DartEntry.HINTS ); 1668 handleCacheItemInLibrary(dartEntry, librarySource, DartEntry.HINTS );
1662 } 1669 }
1663 } 1670 }
1664 } 1671 }
1665 } else if (sourceEntry is HtmlEntry) { 1672 } else if (sourceEntry is HtmlEntry) {
1666 HtmlEntry htmlEntry = sourceEntry; 1673 HtmlEntry htmlEntry = sourceEntry;
1674 handleCacheItem(source, htmlEntry, SourceEntry.CONTENT);
1667 handleCacheItem(source, htmlEntry, SourceEntry.LINE_INFO); 1675 handleCacheItem(source, htmlEntry, SourceEntry.LINE_INFO);
1676 // handleCacheItem(source, htmlEntry, HtmlEntry.ANGULAR_APPLICATION);
1677 // handleCacheItem(source, htmlEntry, HtmlEntry.ANGULAR_COMPONENT);
1678 // handleCacheItem(source, htmlEntry, HtmlEntry.ANGULAR_ENTRY);
1679 // handleCacheItem(source, htmlEntry, HtmlEntry.ANGULAR_ERRORS);
1680 handleCacheItem(source, htmlEntry, HtmlEntry.ELEMENT);
1668 handleCacheItem(source, htmlEntry, HtmlEntry.PARSE_ERRORS); 1681 handleCacheItem(source, htmlEntry, HtmlEntry.PARSE_ERRORS);
1669 handleCacheItem(source, htmlEntry, HtmlEntry.PARSED_UNIT); 1682 handleCacheItem(source, htmlEntry, HtmlEntry.PARSED_UNIT);
1683 // handleCacheItem(source, htmlEntry, HtmlEntry.POLYMER_BUILD_ERRORS);
1684 // handleCacheItem(source, htmlEntry, HtmlEntry.POLYMER_RESOLUTION_ERRORS );
1670 handleCacheItem(source, htmlEntry, HtmlEntry.RESOLUTION_ERRORS); 1685 handleCacheItem(source, htmlEntry, HtmlEntry.RESOLUTION_ERRORS);
1671 handleCacheItem(source, htmlEntry, HtmlEntry.RESOLVED_UNIT); 1686 handleCacheItem(source, htmlEntry, HtmlEntry.RESOLVED_UNIT);
1672 // We are not currently recording any hints related to HTML. 1687 // We are not currently recording any hints related to HTML.
1673 // handleCacheItem(key, htmlEntry, HtmlEntry.HINTS); 1688 // handleCacheItem(key, htmlEntry, HtmlEntry.HINTS);
1674 } 1689 }
1675 } 1690 }
1676 } 1691 }
1677 1692
1678 @override 1693 @override
1679 AnalysisContextStatistics get statistics { 1694 AnalysisContextStatistics get statistics {
1680 AnalysisContextStatisticsImpl statistics = new AnalysisContextStatisticsImpl (); 1695 AnalysisContextStatisticsImpl statistics = new AnalysisContextStatisticsImpl ();
1681 visitCacheItems(statistics._internalPutCacheItem); 1696 visitCacheItems(statistics._internalPutCacheItem);
1682 statistics.partitionData = _cache.partitionData; 1697 statistics.partitionData = _cache.partitionData;
1683 return statistics; 1698 return statistics;
(...skipping 11818 matching lines...) Expand 10 before | Expand all | Expand 10 after
13502 _index++; 13517 _index++;
13503 if (_index >= _manager._workQueues[_queueIndex].length) { 13518 if (_index >= _manager._workQueues[_queueIndex].length) {
13504 _index = 0; 13519 _index = 0;
13505 _queueIndex++; 13520 _queueIndex++;
13506 while (_queueIndex < _manager._workQueues.length && _manager._workQueues[_ queueIndex].isEmpty) { 13521 while (_queueIndex < _manager._workQueues.length && _manager._workQueues[_ queueIndex].isEmpty) {
13507 _queueIndex++; 13522 _queueIndex++;
13508 } 13523 }
13509 } 13524 }
13510 } 13525 }
13511 } 13526 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/get_handler.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698