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

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

Issue 1044463005: Issue 23027. Try to make priority files analyzable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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/analysis_server/test/domain_analysis_test.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:math" as math; 10 import "dart:math" as math;
(...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after
1098 // Failure to do so can result in an infinite loop in 1098 // Failure to do so can result in an infinite loop in
1099 // performAnalysisTask() because re-caching one AST structure 1099 // performAnalysisTask() because re-caching one AST structure
1100 // can cause another priority source's AST structure to be flushed. 1100 // can cause another priority source's AST structure to be flushed.
1101 // 1101 //
1102 int count = math.min( 1102 int count = math.min(
1103 sources.length, _options.cacheSize - _PRIORITY_ORDER_SIZE_DELTA); 1103 sources.length, _options.cacheSize - _PRIORITY_ORDER_SIZE_DELTA);
1104 _priorityOrder = new List<Source>(count); 1104 _priorityOrder = new List<Source>(count);
1105 for (int i = 0; i < count; i++) { 1105 for (int i = 0; i < count; i++) {
1106 _priorityOrder[i] = sources[i]; 1106 _priorityOrder[i] = sources[i];
1107 } 1107 }
1108 // Ensure entries for every priority source.
1109 for (var source in _priorityOrder) {
1110 SourceEntry entry = _getReadableSourceEntry(source);
1111 if (entry == null) {
1112 _createSourceEntry(source, false);
1113 }
1114 }
1108 } 1115 }
1109 } 1116 }
1110 1117
1111 @override 1118 @override
1112 set contentCache(ContentCache value) { 1119 set contentCache(ContentCache value) {
1113 _contentCache = value; 1120 _contentCache = value;
1114 } 1121 }
1115 1122
1116 @override 1123 @override
1117 DeclaredVariables get declaredVariables => _declaredVariables; 1124 DeclaredVariables get declaredVariables => _declaredVariables;
(...skipping 10525 matching lines...) Expand 10 before | Expand all | Expand 10 after
11643 visitElement(Element element) { 11650 visitElement(Element element) {
11644 if (element.id == _id) { 11651 if (element.id == _id) {
11645 result = element; 11652 result = element;
11646 throw new _ElementByIdFinderException(); 11653 throw new _ElementByIdFinderException();
11647 } 11654 }
11648 super.visitElement(element); 11655 super.visitElement(element);
11649 } 11656 }
11650 } 11657 }
11651 11658
11652 class _ElementByIdFinderException {} 11659 class _ElementByIdFinderException {}
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/domain_analysis_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698