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

Unified Diff: pkg/fletchc/lib/src/find_position_visitor.dart

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 11 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 | « pkg/fletchc/lib/src/enqueuer_mixin.dart ('k') | pkg/fletchc/lib/src/fletch_backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/fletchc/lib/src/find_position_visitor.dart
diff --git a/pkg/fletchc/lib/src/find_position_visitor.dart b/pkg/fletchc/lib/src/find_position_visitor.dart
deleted file mode 100644
index 896c3107f9121eaace6a7a6b72d597990e21e794..0000000000000000000000000000000000000000
--- a/pkg/fletchc/lib/src/find_position_visitor.dart
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE.md file.
-
-import 'package:compiler/src/elements/visitor.dart';
-import 'package:compiler/src/parser/partial_elements.dart';
-import 'package:compiler/src/elements/elements.dart';
-import 'package:compiler/src/elements/modelx.dart';
-
-class FindPositionVisitor extends BaseElementVisitor {
- final int position;
- Element element;
-
- FindPositionVisitor(this.position, this.element);
-
- visit(Element e, [arg]) => e.accept(this, arg);
-
- visitElement(ElementX e, _) {
- DeclarationSite site = e.declarationSite;
- if (site is PartialElement) {
- if (site.beginToken.charOffset <= position &&
- position < site.endToken.next.charOffset) {
- element = e;
- }
- }
- }
-
- visitClassElement(ClassElement e, _) {
- if (e is PartialClassElement) {
- if (e.beginToken.charOffset <= position &&
- position < e.endToken.next.charOffset) {
- element = e;
- visitScopeContainerElement(e, null);
- }
- }
- }
-
- visitScopeContainerElement(ScopeContainerElement e, _) {
- e.forEachLocalMember((Element element) => visit(element));
- }
-
- visitCompilationUnitElement(CompilationUnitElement e, _) {
- e.forEachLocalMember((Element element) => visit(element));
- }
-}
« no previous file with comments | « pkg/fletchc/lib/src/enqueuer_mixin.dart ('k') | pkg/fletchc/lib/src/fletch_backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698