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

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

Issue 1131423002: Clean up many generated constructors (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Comment change Created 5 years, 7 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
Index: pkg/analysis_server/lib/src/services/generated/util.dart
diff --git a/pkg/analysis_server/lib/src/services/generated/util.dart b/pkg/analysis_server/lib/src/services/generated/util.dart
index 06502579c299c83eda035ceb33f289926ab8a487..31a15c3025e5ef441b18dcfca89e3be66d7f1d8e 100644
--- a/pkg/analysis_server/lib/src/services/generated/util.dart
+++ b/pkg/analysis_server/lib/src/services/generated/util.dart
@@ -83,8 +83,7 @@ class AssistContext {
*/
AstNode get coveredNode {
if (_coveredNode == null) {
- NodeLocator locator =
- new NodeLocator.con2(selectionOffset, selectionOffset);
+ NodeLocator locator = new NodeLocator(selectionOffset, selectionOffset);
_coveredNode = locator.searchWithin(compilationUnit);
}
return _coveredNode;
@@ -95,8 +94,8 @@ class AssistContext {
*/
AstNode get coveringNode {
if (_coveringNode == null) {
- NodeLocator locator = new NodeLocator.con2(
- selectionOffset, selectionOffset + selectionLength);
+ NodeLocator locator =
+ new NodeLocator(selectionOffset, selectionOffset + selectionLength);
_coveringNode = locator.searchWithin(compilationUnit);
}
return _coveringNode;
@@ -935,8 +934,7 @@ class CorrectionUtils {
/**
* @return the [AstNode] that encloses the given offset.
*/
- AstNode findNode(int offset) =>
- new NodeLocator.con1(offset).searchWithin(unit);
+ AstNode findNode(int offset) => new NodeLocator(offset).searchWithin(unit);
/**
* TODO(scheglov) replace with nodes once there will be [CompilationUnit.comments].

Powered by Google App Engine
This is Rietveld 408576698