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

Unified Diff: pkg/analysis_server/lib/src/services/correction/util.dart

Issue 515733002: 'Inline Local' refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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 | pkg/analysis_server/lib/src/services/refactoring/inline_local.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/services/correction/util.dart
diff --git a/pkg/analysis_server/lib/src/services/correction/util.dart b/pkg/analysis_server/lib/src/services/correction/util.dart
index da767a17fe4d995bebc5dc289823f56ecc17ec71..4b56971ed50047650fb8e12c387a8d0080ab7390 100644
--- a/pkg/analysis_server/lib/src/services/correction/util.dart
+++ b/pkg/analysis_server/lib/src/services/correction/util.dart
@@ -411,6 +411,11 @@ class CorrectionUtils {
}
/**
+ * Returns the [AstNode] that encloses the given offset.
+ */
+ AstNode findNode(int offset) => new NodeLocator.con1(offset).searchWithin(unit);
+
+ /**
* Returns the actual type source of the given [Expression], may be `null`
* if can not be resolved, should be treated as the `dynamic` type.
*/
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/refactoring/inline_local.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698