| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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/ast/ast.dart'; | 5 import 'package:analyzer/dart/ast/ast.dart'; |
| 6 import 'package:analyzer/dart/element/element.dart'; | 6 import 'package:analyzer/dart/element/element.dart'; |
| 7 import 'package:analyzer/dart/element/type.dart'; | 7 import 'package:analyzer/dart/element/type.dart'; |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * A collection of methods which may be used to map from nodes in a resolved AST | 10 * A collection of methods which may be used to map from nodes in a resolved AST |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 /** | 272 /** |
| 273 * Return the static type of the expression [node], or `null` if the AST | 273 * Return the static type of the expression [node], or `null` if the AST |
| 274 * structure has not been resolved. | 274 * structure has not been resolved. |
| 275 */ | 275 */ |
| 276 DartType staticTypeForExpression(Expression node); | 276 DartType staticTypeForExpression(Expression node); |
| 277 | 277 |
| 278 /** | 278 /** |
| 279 * Return the type being named by [node], or `null` if the AST structure has | 279 * Return the type being named by [node], or `null` if the AST structure has |
| 280 * not been resolved. | 280 * not been resolved. |
| 281 */ | 281 */ |
| 282 DartType typeForTypeName(TypeAnnotation node); | 282 DartType typeForTypeName(TypeName node); |
| 283 | 283 |
| 284 /** | 284 /** |
| 285 * Return the element associated with the uri of the directive [node], or | 285 * Return the element associated with the uri of the directive [node], or |
| 286 * `null` if the AST structure has not been resolved or if the URI could not | 286 * `null` if the AST structure has not been resolved or if the URI could not |
| 287 * be resolved. Examples of the latter case include a directive that contains | 287 * be resolved. Examples of the latter case include a directive that contains |
| 288 * an invalid URL or a URL that does not exist. | 288 * an invalid URL or a URL that does not exist. |
| 289 */ | 289 */ |
| 290 Element uriElementForDirective(UriBasedDirective node); | 290 Element uriElementForDirective(UriBasedDirective node); |
| 291 } | 291 } |
| OLD | NEW |