| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'package:analyzer/dart/analysis/session.dart'; |
| 5 import 'package:analyzer/dart/ast/ast.dart'; | 6 import 'package:analyzer/dart/ast/ast.dart'; |
| 6 import 'package:analyzer/dart/element/element.dart'; | 7 import 'package:analyzer/dart/element/element.dart'; |
| 7 import 'package:analyzer/error/error.dart'; | 8 import 'package:analyzer/error/error.dart'; |
| 8 import 'package:analyzer/src/generated/resolver.dart'; | 9 import 'package:analyzer/src/generated/resolver.dart'; |
| 9 import 'package:analyzer/src/generated/source.dart'; | 10 import 'package:analyzer/src/generated/source.dart'; |
| 10 | 11 |
| 11 /** | 12 /** |
| 12 * The result of performing some kind of analysis on a single file. Every result | 13 * The result of performing some kind of analysis on a single file. Every result |
| 13 * that implements this interface will also implement a sub-interface. | 14 * that implements this interface will also implement a sub-interface. |
| 14 * | 15 * |
| 15 * Clients may not extend, implement or mix-in this class. | 16 * Clients may not extend, implement or mix-in this class. |
| 16 */ | 17 */ |
| 17 abstract class AnalysisResult { | 18 abstract class AnalysisResult { |
| 18 /** | 19 /** |
| 19 * The absolute and normalized path of the file that was analyzed. | 20 * The absolute and normalized path of the file that was analyzed. |
| 20 */ | 21 */ |
| 21 String get path; | 22 String get path; |
| 22 | 23 |
| 23 /** | 24 /** |
| 25 * Return the session used to compute this result. |
| 26 */ |
| 27 AnalysisSession get session; |
| 28 |
| 29 /** |
| 24 * The state of the results. | 30 * The state of the results. |
| 25 */ | 31 */ |
| 26 ResultState get state; | 32 ResultState get state; |
| 27 | 33 |
| 28 /** | 34 /** |
| 29 * The absolute URI of the file that was analyzed. | 35 * The absolute URI of the file that was analyzed. |
| 30 */ | 36 */ |
| 31 Uri get uri; | 37 Uri get uri; |
| 32 } | 38 } |
| 33 | 39 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 * when given the path to the compilation unit represented by the [element]. | 148 * when given the path to the compilation unit represented by the [element]. |
| 143 * | 149 * |
| 144 * The signature is based on the APIs of the files of the library (including | 150 * The signature is based on the APIs of the files of the library (including |
| 145 * the file itself), and the transitive closure of files imported and exported | 151 * the file itself), and the transitive closure of files imported and exported |
| 146 * by the library. If the signature of a file has not changed, then there have | 152 * by the library. If the signature of a file has not changed, then there have |
| 147 * been no changes that would cause any files that depend on it to need to be | 153 * been no changes that would cause any files that depend on it to need to be |
| 148 * re-analyzed. | 154 * re-analyzed. |
| 149 */ | 155 */ |
| 150 String get signature; | 156 String get signature; |
| 151 } | 157 } |
| OLD | NEW |