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

Side by Side Diff: pkg/analyzer/lib/src/dart/element/ast_provider.dart

Issue 2669353002: Stop using Element.computeNode() in refactorings and fixes. (Closed)
Patch Set: documentation comments Created 3 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 unified diff | Download patch
« no previous file with comments | « pkg/analyzer/lib/src/dart/analysis/ast_provider_driver.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 * Provider for resolved and unresolved [CompilationUnit]s that contain, or
12 * [AstNode]s that declare [Element]s.
13 */
14 abstract class AstProvider {
15 AstNode findNodeForElement(CompilationUnit unit, Element element);
16
17 /**
18 * Completes with the parsed [AstNode] that declares the [element].
19 */
20 Future<T> getParsedNodeForElement<T extends AstNode>(Element element);
21
22 /**
23 * Completes with the parsed [CompilationUnit] that contains the [element].
24 */
25 Future<CompilationUnit> getParsedUnitForElement(Element element);
26
27 /**
28 * Completes with the resolved [AstNode] that declares the [element].
29 */
30 Future<T> getResolvedNodeForElement<T extends AstNode>(Element element);
31
32 /**
33 * Completes with the resolved [CompilationUnit] that contains the [element].
34 */
35 Future<CompilationUnit> getResolvedUnitForElement(Element element);
36 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/dart/analysis/ast_provider_driver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698