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

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

Issue 1531393002: Stop using RESOLVED_UNIT_x for other libraries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/correction/fix_internal.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 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 1313 matching lines...) Expand 10 before | Expand all | Expand 10 after
1324 * been yet resolved, or any problem happened. 1324 * been yet resolved, or any problem happened.
1325 */ 1325 */
1326 CompilationUnit _getResolvedCompilationUnitToResendNotification( 1326 CompilationUnit _getResolvedCompilationUnitToResendNotification(
1327 AnalysisContext context, Source source) { 1327 AnalysisContext context, Source source) {
1328 List<Source> librarySources = context.getLibrariesContaining(source); 1328 List<Source> librarySources = context.getLibrariesContaining(source);
1329 if (librarySources.isEmpty) { 1329 if (librarySources.isEmpty) {
1330 return null; 1330 return null;
1331 } 1331 }
1332 // if library has not been resolved yet, the unit will be resolved later 1332 // if library has not been resolved yet, the unit will be resolved later
1333 Source librarySource = librarySources[0]; 1333 Source librarySource = librarySources[0];
1334 if (context.getResult(librarySource, LIBRARY_ELEMENT8) == null) { 1334 if (context.getResult(librarySource, LIBRARY_ELEMENT5) == null) {
1335 return null; 1335 return null;
1336 } 1336 }
1337 // if library has been already resolved, resolve unit 1337 // if library has been already resolved, resolve unit
1338 return runWithWorkingCacheSize(context, () { 1338 return runWithWorkingCacheSize(context, () {
1339 return context.resolveCompilationUnit2(source, librarySource); 1339 return context.resolveCompilationUnit2(source, librarySource);
1340 }); 1340 });
1341 } 1341 }
1342 1342
1343 _scheduleAnalysisImplementedNotification() async { 1343 _scheduleAnalysisImplementedNotification() async {
1344 Set<String> files = analysisServices[AnalysisService.IMPLEMENTED]; 1344 Set<String> files = analysisServices[AnalysisService.IMPLEMENTED];
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
1677 /** 1677 /**
1678 * The [PerformanceTag] for time spent in server request handlers. 1678 * The [PerformanceTag] for time spent in server request handlers.
1679 */ 1679 */
1680 static PerformanceTag serverRequests = new PerformanceTag('serverRequests'); 1680 static PerformanceTag serverRequests = new PerformanceTag('serverRequests');
1681 1681
1682 /** 1682 /**
1683 * The [PerformanceTag] for time spent in split store microtasks. 1683 * The [PerformanceTag] for time spent in split store microtasks.
1684 */ 1684 */
1685 static PerformanceTag splitStore = new PerformanceTag('splitStore'); 1685 static PerformanceTag splitStore = new PerformanceTag('splitStore');
1686 } 1686 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/correction/fix_internal.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698