OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 import 'package:compiler/src/elements/visitor.dart'; | 5 import 'package:compiler/src/elements/visitor.dart'; |
6 import 'package:compiler/src/scanner/scannerlib.dart'; | 6 import 'package:compiler/src/parser/partial_elements.dart'; |
7 import 'package:compiler/src/elements/elements.dart'; | 7 import 'package:compiler/src/elements/elements.dart'; |
8 import 'package:compiler/src/elements/modelx.dart'; | 8 import 'package:compiler/src/elements/modelx.dart'; |
9 | 9 |
10 class FindPositionVisitor extends BaseElementVisitor { | 10 class FindPositionVisitor extends BaseElementVisitor { |
11 final int position; | 11 final int position; |
12 Element element; | 12 Element element; |
13 | 13 |
14 FindPositionVisitor(this.position, this.element); | 14 FindPositionVisitor(this.position, this.element); |
15 | 15 |
16 visit(Element e, [arg]) => e.accept(this, arg); | 16 visit(Element e, [arg]) => e.accept(this, arg); |
(...skipping 19 matching lines...) Expand all Loading... |
36 } | 36 } |
37 | 37 |
38 visitScopeContainerElement(ScopeContainerElement e, _) { | 38 visitScopeContainerElement(ScopeContainerElement e, _) { |
39 e.forEachLocalMember((Element element) => visit(element)); | 39 e.forEachLocalMember((Element element) => visit(element)); |
40 } | 40 } |
41 | 41 |
42 visitCompilationUnitElement(CompilationUnitElement e, _) { | 42 visitCompilationUnitElement(CompilationUnitElement e, _) { |
43 e.forEachLocalMember((Element element) => visit(element)); | 43 e.forEachLocalMember((Element element) => visit(element)); |
44 } | 44 } |
45 } | 45 } |
OLD | NEW |