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

Side by Side Diff: pkg/analyzer/lib/dart/ast/resolution_map.dart

Issue 2613383003: Add support for generic function type syntax, part 1 (Closed)
Patch Set: Created 3 years, 11 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/dart/ast/ast_factory.dart ('k') | pkg/analyzer/lib/dart/ast/visitor.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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(TypeName node); 282 DartType typeForTypeName(TypeAnnotation 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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/dart/ast/ast_factory.dart ('k') | pkg/analyzer/lib/dart/ast/visitor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698