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

Unified Diff: pkg/analysis_server/test/services/correction/status_test.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/test/services/correction/status_test.dart
diff --git a/pkg/analysis_server/test/services/correction/status_test.dart b/pkg/analysis_server/test/services/correction/status_test.dart
index c31017a35344834daba18d600b7784b98d8f040c..7ac573060da363b58f6727f04815a8b180c678c0 100644
--- a/pkg/analysis_server/test/services/correction/status_test.dart
+++ b/pkg/analysis_server/test/services/correction/status_test.dart
@@ -30,7 +30,7 @@ class RefactoringLocationTest extends AbstractSingleUnitTest {
resolveTestUnit('class MyClass {}');
Element element = findElement('MyClass');
// check
- Location location = createLocation_forElement(element);
+ Location location = new Location.fromElement(element);
expect(location.file, '/test.dart');
expect(location.offset, 6);
expect(location.length, 7);
@@ -44,7 +44,7 @@ class RefactoringLocationTest extends AbstractSingleUnitTest {
SourceRange range = rangeElementName(element);
SearchMatch match = new SearchMatch(null, element, range, true, false);
// check
- Location location = createLocation_forMatch(match);
+ Location location = new Location.fromMatch(match);
expect(location.file, '/test.dart');
expect(location.offset, range.offset);
expect(location.length, range.length);
@@ -57,7 +57,7 @@ main() {
''');
AstNode node = findNodeAtString('main');
// check
- Location location = createLocation_forNode(node);
+ Location location = new Location.fromNode(node);
expect(location.file, '/test.dart');
expect(location.offset, node.offset);
expect(location.length, node.length);
@@ -67,7 +67,7 @@ main() {
resolveTestUnit('');
SourceRange range = rangeStartLength(10, 20);
// check
- Location location = createLocation_forUnit(testUnit, range);
+ Location location = new Location.fromUnit(testUnit, range);
expect(location.file, '/test.dart');
expect(location.offset, range.offset);
expect(location.length, range.length);

Powered by Google App Engine
This is Rietveld 408576698