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 'package:analysis_server/protocol/protocol_generated.dart'; |
| 6 import 'package:analyzer/dart/ast/ast.dart'; |
| 7 |
| 8 /** |
| 9 * An object used to compute the list of elements referenced within a given |
| 10 * region of a compilation unit that are imported into the compilation unit's |
| 11 * library. |
| 12 */ |
| 13 class ImportedElementsComputer { |
| 14 /** |
| 15 * The compilation unit in which the elements are referenced. |
| 16 */ |
| 17 final CompilationUnit unit; |
| 18 |
| 19 /** |
| 20 * The offset of the region containing the references to be returned. |
| 21 */ |
| 22 final int offset; |
| 23 |
| 24 /** |
| 25 * The length of the region containing the references to be returned. |
| 26 */ |
| 27 final int length; |
| 28 |
| 29 /** |
| 30 * Initialize a newly created computer to compute the list of imported |
| 31 * elements referenced in the given [unit] within the region with the given |
| 32 * [offset] and [length]. |
| 33 */ |
| 34 ImportedElementsComputer(this.unit, this.offset, this.length); |
| 35 |
| 36 /** |
| 37 * Compute and return the list of imported elements. |
| 38 */ |
| 39 List<ImportedElements> compute() { |
| 40 // TODO(brianwilkerson) Implement this. |
| 41 return <ImportedElements>[]; |
| 42 } |
| 43 } |
OLD | NEW |