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

Unified Diff: pkg/analyzer/test/generated/test_support.dart

Issue 185603002: Update and analyzer snapshot with AST -> Ast rename. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweak for analyzer version in 'intl' package. Created 6 years, 10 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/analyzer/test/generated/test_support.dart
diff --git a/pkg/analyzer/test/generated/test_support.dart b/pkg/analyzer/test/generated/test_support.dart
index adde198e19af4ba9bfd257d081545fb6747d9b03..20670ac61119dd3d2b2f9853e1b64d608b68ea33 100644
--- a/pkg/analyzer/test/generated/test_support.dart
+++ b/pkg/analyzer/test/generated/test_support.dart
@@ -12,7 +12,7 @@ import 'package:analyzer/src/generated/java_junit.dart';
import 'package:analyzer/src/generated/source.dart';
import 'package:analyzer/src/generated/error.dart';
import 'package:analyzer/src/generated/scanner.dart';
-import 'package:analyzer/src/generated/ast.dart' show ASTNode, NodeLocator;
+import 'package:analyzer/src/generated/ast.dart' show AstNode, NodeLocator;
import 'package:analyzer/src/generated/element.dart' show InterfaceType, MethodElement, PropertyAccessorElement;
import 'package:analyzer/src/generated/engine.dart';
import 'package:unittest/unittest.dart' as _ut;
@@ -722,14 +722,14 @@ class EngineTestCase extends JUnitTestCase {
}
/**
- * @return the [ASTNode] with requested type at offset of the "prefix".
+ * @return the [AstNode] with requested type at offset of the "prefix".
*/
- static ASTNode findNode(ASTNode root, String code, String prefix, Type clazz) {
+ static AstNode findNode(AstNode root, String code, String prefix, Type clazz) {
int offset = code.indexOf(prefix);
if (offset == -1) {
throw new IllegalArgumentException("Not found '${prefix}'.");
}
- ASTNode node = new NodeLocator.con1(offset).searchWithin(root);
+ AstNode node = new NodeLocator.con1(offset).searchWithin(root);
return node.getAncestor(clazz);
}

Powered by Google App Engine
This is Rietveld 408576698