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

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: 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..7cc28c63be24b3806279b6f431ecc331f529d44b 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.forUnit(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.forUnit(unit, rangeAfterLastNode));
}
}
}

Powered by Google App Engine
This is Rietveld 408576698