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

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

Issue 1307143004: Make navigation notification operation Source based, without Dart knowledge. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/domain_analysis.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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 } 477 }
478 478
479 /** 479 /**
480 * Return the primary [ContextSourcePair] representing the given [path]. 480 * Return the primary [ContextSourcePair] representing the given [path].
481 * 481 *
482 * The [AnalysisContext] of this pair will be the context that explicitly 482 * The [AnalysisContext] of this pair will be the context that explicitly
483 * contains the path, if any such context exists, otherwise it will be the 483 * contains the path, if any such context exists, otherwise it will be the
484 * first context that implicitly analyzes it. 484 * first context that implicitly analyzes it.
485 * 485 *
486 * If the [path] is not analyzed by any context, a [ContextSourcePair] with 486 * If the [path] is not analyzed by any context, a [ContextSourcePair] with
487 * a `null` context and `file` [Source] is returned. 487 * a `null` context and a `file` [Source] is returned.
488 * 488 *
489 * If the [path] dosn't represent a file, a [ContextSourcePair] with a `null` 489 * If the [path] doesn't represent a file, a [ContextSourcePair] with a `null`
490 * context and `null` [Source] is returned. 490 * context and `null` [Source] is returned.
491 * 491 *
492 * Does not return `null`. 492 * Does not return `null`.
493 */ 493 */
494 ContextSourcePair getContextSourcePair(String path) { 494 ContextSourcePair getContextSourcePair(String path) {
495 // try SDK 495 // try SDK
496 { 496 {
497 Uri uri = resourceProvider.pathContext.toUri(path); 497 Uri uri = resourceProvider.pathContext.toUri(path);
498 Source sdkSource = defaultSdk.fromFileUri(uri); 498 Source sdkSource = defaultSdk.fromFileUri(uri);
499 if (sdkSource != null) { 499 if (sdkSource != null) {
(...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after
1559 /** 1559 /**
1560 * The [PerformanceTag] for time spent in server request handlers. 1560 * The [PerformanceTag] for time spent in server request handlers.
1561 */ 1561 */
1562 static PerformanceTag serverRequests = new PerformanceTag('serverRequests'); 1562 static PerformanceTag serverRequests = new PerformanceTag('serverRequests');
1563 1563
1564 /** 1564 /**
1565 * The [PerformanceTag] for time spent in split store microtasks. 1565 * The [PerformanceTag] for time spent in split store microtasks.
1566 */ 1566 */
1567 static PerformanceTag splitStore = new PerformanceTag('splitStore'); 1567 static PerformanceTag splitStore = new PerformanceTag('splitStore');
1568 } 1568 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/domain_analysis.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698