Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | |
| 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 file. | |
| 4 | |
| 5 import 'dart:async'; | |
| 6 | |
| 7 import 'package:analyzer/dart/ast/ast.dart'; | |
| 8 import 'package:analyzer/dart/element/element.dart'; | |
| 9 | |
| 10 /** | |
| 11 * TODO(scheglov) document | |
|
Brian Wilkerson
2017/02/02 21:07:01
Do you want to do this before committing this CL?
scheglov
2017/02/02 21:08:03
Acknowledged.
| |
| 12 */ | |
| 13 abstract class AstProvider { | |
| 14 AstNode findNodeForElement(CompilationUnit unit, Element element); | |
| 15 | |
| 16 Future<T> getParsedNodeForElement<T extends AstNode>(Element element); | |
| 17 | |
| 18 Future<CompilationUnit> getParsedUnitForElement(Element element); | |
| 19 | |
| 20 Future<T> getResolvedNodeForElement<T extends AstNode>(Element element); | |
| 21 | |
| 22 Future<CompilationUnit> getResolvedUnitForElement(Element element); | |
| 23 } | |
| OLD | NEW |