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

Unified Diff: pkg/analysis_server/lib/src/analysis_server.dart

Issue 642693004: Force Dart unit resolution when elements at offset are requested. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/analysis_server.dart
diff --git a/pkg/analysis_server/lib/src/analysis_server.dart b/pkg/analysis_server/lib/src/analysis_server.dart
index 6daf3e19b7b19a5b0aea53faf3bae839445c6647..5d43fa4c61fa1f8488a387dc5cdce12b4d138017 100644
--- a/pkg/analysis_server/lib/src/analysis_server.dart
+++ b/pkg/analysis_server/lib/src/analysis_server.dart
@@ -791,7 +791,7 @@ class AnalysisServer {
List<Source> librarySources = context.getLibrariesContaining(unitSource);
for (Source librarySource in librarySources) {
CompilationUnit unit =
- context.getResolvedCompilationUnit2(unitSource, librarySource);
+ context.resolveCompilationUnit2(unitSource, librarySource);
if (unit != null) {
units.add(unit);
}
@@ -801,7 +801,7 @@ class AnalysisServer {
}
/**
- * Returns [AstNode]s at the given [offset] of the given [file].
+ * Returns resolved [AstNode]s at the given [offset] of the given [file].
*
* May be empty, but not `null`.
*/
@@ -820,7 +820,7 @@ class AnalysisServer {
/**
* Returns [Element]s at the given [offset] of the given [file].
*
- * May be empty if not resolved, but not `null`.
+ * May be empty if cannot be resolved, but not `null`.
*/
List<Element> getElementsAtOffset(String file, int offset) {
List<AstNode> nodes = getNodesAtOffset(file, offset);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698