Chromium Code Reviews

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

Issue 1145443003: Issue 23477. Fix for Quick Fixes in overlay-only files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/analysis_server/test/edit/fixes_test.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:math' show max; 9 import 'dart:math' show max;
10 10
(...skipping 514 matching lines...)
525 * This method does not wait for all errors to be computed, and returns just 525 * This method does not wait for all errors to be computed, and returns just
526 * the current state. 526 * the current state.
527 */ 527 */
528 AnalysisErrorInfo getErrors(String file) { 528 AnalysisErrorInfo getErrors(String file) {
529 ContextSourcePair contextSource = getContextSourcePair(file); 529 ContextSourcePair contextSource = getContextSourcePair(file);
530 AnalysisContext context = contextSource.context; 530 AnalysisContext context = contextSource.context;
531 Source source = contextSource.source; 531 Source source = contextSource.source;
532 if (context == null) { 532 if (context == null) {
533 return null; 533 return null;
534 } 534 }
535 if (!source.exists()) { 535 if (!context.exists(source)) {
536 return null; 536 return null;
537 } 537 }
538 return context.getErrors(source); 538 return context.getErrors(source);
539 } 539 }
540 540
541 // TODO(brianwilkerson) Add the following method after 'prioritySources' has 541 // TODO(brianwilkerson) Add the following method after 'prioritySources' has
542 // been added to InternalAnalysisContext. 542 // been added to InternalAnalysisContext.
543 // /** 543 // /**
544 // * Return a list containing the full names of all of the sources that are 544 // * Return a list containing the full names of all of the sources that are
545 // * priority sources. 545 // * priority sources.
(...skipping 954 matching lines...)
1500 /** 1500 /**
1501 * The [PerformanceTag] for time spent in server request handlers. 1501 * The [PerformanceTag] for time spent in server request handlers.
1502 */ 1502 */
1503 static PerformanceTag serverRequests = new PerformanceTag('serverRequests'); 1503 static PerformanceTag serverRequests = new PerformanceTag('serverRequests');
1504 1504
1505 /** 1505 /**
1506 * The [PerformanceTag] for time spent in split store microtasks. 1506 * The [PerformanceTag] for time spent in split store microtasks.
1507 */ 1507 */
1508 static PerformanceTag splitStore = new PerformanceTag('splitStore'); 1508 static PerformanceTag splitStore = new PerformanceTag('splitStore');
1509 } 1509 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/test/edit/fixes_test.dart » ('j') | no next file with comments »

Powered by Google App Engine