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

Side by Side Diff: pkg/analysis_server/lib/src/analysis_server.dart

Issue 1854863002: Issue 26096. Explicitly compute the result that ensures that directives are resolved in units. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix for a review comment. Created 4 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
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 library analysis.server; 5 library analysis.server;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:core' hide Resource; 9 import 'dart:core' hide Resource;
10 import 'dart:math' show max; 10 import 'dart:math' show max;
(...skipping 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after
1464 * for summary information and linking pre-indexed packages into the index, 1464 * for summary information and linking pre-indexed packages into the index,
1465 * but for now we only invalidate project specific index information. 1465 * but for now we only invalidate project specific index information.
1466 */ 1466 */
1467 void _setupIndexInvalidation() { 1467 void _setupIndexInvalidation() {
1468 if (index == null) { 1468 if (index == null) {
1469 return; 1469 return;
1470 } 1470 }
1471 onContextsChanged.listen((ContextsChangedEvent event) { 1471 onContextsChanged.listen((ContextsChangedEvent event) {
1472 for (AnalysisContext context in event.added) { 1472 for (AnalysisContext context in event.added) {
1473 context 1473 context
1474 .onResultChanged(RESOLVED_UNIT2) 1474 .onResultChanged(RESOLVED_UNIT3)
1475 .listen((ResultChangedEvent event) { 1475 .listen((ResultChangedEvent event) {
1476 if (event.wasComputed) { 1476 if (event.wasComputed) {
1477 Object value = event.value; 1477 Object value = event.value;
1478 if (value is CompilationUnit) { 1478 if (value is CompilationUnit) {
1479 index.indexDeclarations(value); 1479 index.indexDeclarations(value);
1480 } 1480 }
1481 } 1481 }
1482 }); 1482 });
1483 context 1483 context
1484 .onResultChanged(RESOLVED_UNIT) 1484 .onResultChanged(RESOLVED_UNIT)
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
1751 /** 1751 /**
1752 * The [PerformanceTag] for time spent in server request handlers. 1752 * The [PerformanceTag] for time spent in server request handlers.
1753 */ 1753 */
1754 static PerformanceTag serverRequests = new PerformanceTag('serverRequests'); 1754 static PerformanceTag serverRequests = new PerformanceTag('serverRequests');
1755 1755
1756 /** 1756 /**
1757 * The [PerformanceTag] for time spent in split store microtasks. 1757 * The [PerformanceTag] for time spent in split store microtasks.
1758 */ 1758 */
1759 static PerformanceTag splitStore = new PerformanceTag('splitStore'); 1759 static PerformanceTag splitStore = new PerformanceTag('splitStore');
1760 } 1760 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698