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

Unified Diff: site/try/poi/poi.dart

Issue 1056133008: Fix other tests in 'try' after elementvisitor changes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | site/try/poi/scope_information_visitor.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: site/try/poi/poi.dart
diff --git a/site/try/poi/poi.dart b/site/try/poi/poi.dart
index 7c023d075de556114334f90154a5292487e6fd65..e86bfc59343c8ed0360b7a7482c3a55e3b0d2725 100644
--- a/site/try/poi/poi.dart
+++ b/site/try/poi/poi.dart
@@ -34,7 +34,7 @@ import 'package:compiler/src/dart2jslib.dart' show
WorkItem;
import 'package:compiler/src/elements/visitor.dart' show
- ElementVisitor;
+ BaseElementVisitor;
import 'package:compiler/src/elements/elements.dart' show
AbstractFieldElement,
@@ -492,24 +492,24 @@ Future<Element> runPoiInternal(
Element findPosition(int position, Element element) {
FindPositionVisitor visitor = new FindPositionVisitor(position, element);
- element.accept(visitor);
+ element.accept(visitor, null);
return visitor.element;
}
String scopeInformation(Element element, int position) {
ScopeInformationVisitor visitor =
new ScopeInformationVisitor(cachedCompiler, element, position);
- element.accept(visitor);
+ element.accept(visitor, null);
return '${visitor.buffer}';
}
-class FindPositionVisitor extends ElementVisitor {
+class FindPositionVisitor extends BaseElementVisitor {
final int position;
Element element;
FindPositionVisitor(this.position, this.element);
- visitElement(modelx.ElementX e) {
+ visitElement(modelx.ElementX e, _) {
DeclarationSite site = e.declarationSite;
if (site is PartialElement) {
if (site.beginToken.charOffset <= position &&
@@ -519,18 +519,18 @@ class FindPositionVisitor extends ElementVisitor {
}
}
- visitClassElement(ClassElement e) {
+ visitClassElement(ClassElement e, _) {
if (e is PartialClassElement) {
if (e.beginToken.charOffset <= position &&
position < e.endToken.next.charOffset) {
element = e;
- visitScopeContainerElement(e);
+ visitScopeContainerElement(e, _);
}
}
}
- visitScopeContainerElement(ScopeContainerElement e) {
- e.forEachLocalMember((Element element) => element.accept(this));
+ visitScopeContainerElement(ScopeContainerElement e, _) {
+ e.forEachLocalMember((Element element) => element.accept(this, _));
}
}
« no previous file with comments | « no previous file | site/try/poi/scope_information_visitor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698