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

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

Issue 462403005: Move Location factories and RefactoringProblemSeverity.max into the generated classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rename to 'fromX'. 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
Index: pkg/analysis_server/lib/src/services/correction/statement_analyzer.dart
diff --git a/pkg/analysis_server/lib/src/services/correction/statement_analyzer.dart b/pkg/analysis_server/lib/src/services/correction/statement_analyzer.dart
index 89e51738557db167c2705f0996f757fa2891e004..d83ea87486a3fe7e8af766306417ae4613cbc315 100644
--- a/pkg/analysis_server/lib/src/services/correction/statement_analyzer.dart
+++ b/pkg/analysis_server/lib/src/services/correction/statement_analyzer.dart
@@ -189,7 +189,7 @@ class StatementAnalyzer extends SelectionAnalyzer {
if (_hasTokens(rangeBeforeFirstNode)) {
invalidSelection2(
"The beginning of the selection contains characters that do not belong to a statement.",
- createLocation_forUnit(unit, rangeBeforeFirstNode));
+ new Location.fromUnit(unit, rangeBeforeFirstNode));
}
}
// some tokens after last selected node
@@ -199,7 +199,7 @@ class StatementAnalyzer extends SelectionAnalyzer {
if (_hasTokens(rangeAfterLastNode)) {
invalidSelection2(
"The end of the selection contains characters that do not belong to a statement.",
- createLocation_forUnit(unit, rangeAfterLastNode));
+ new Location.fromUnit(unit, rangeAfterLastNode));
}
}
}
« no previous file with comments | « pkg/analysis_server/lib/src/search/search_result.dart ('k') | pkg/analysis_server/lib/src/services/correction/status.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698