OLD | NEW |
---|---|
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library analyzer.src.generated.ast; | 5 library analyzer.src.generated.ast; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 | 8 |
9 import 'package:analyzer/dart/element/element.dart'; | 9 import 'package:analyzer/dart/element/element.dart'; |
10 import 'package:analyzer/dart/element/type.dart'; | 10 import 'package:analyzer/dart/element/type.dart'; |
(...skipping 8070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
8081 * no type arguments were provided. | 8081 * no type arguments were provided. |
8082 */ | 8082 */ |
8083 TypeArgumentList _typeArguments; | 8083 TypeArgumentList _typeArguments; |
8084 | 8084 |
8085 /** | 8085 /** |
8086 * The list of arguments to the method. | 8086 * The list of arguments to the method. |
8087 */ | 8087 */ |
8088 ArgumentList _argumentList; | 8088 ArgumentList _argumentList; |
8089 | 8089 |
8090 /** | 8090 /** |
8091 * The function type of the method invocation, or `null` if the AST | |
8092 * structure has not been resolved, or if the invoke could not be resolved. | |
8093 * | |
8094 * This will usually be a [FunctionType], but it can also be an | |
8095 * [InterfaceType] with a `call` method, `dynamic`, `Function`, or a `@proxy` | |
8096 * interface type that implements `Function`. | |
8097 */ | |
8098 DartType staticInvokeType; | |
Brian Wilkerson
2016/01/06 21:57:34
Do we need the same fields added to FunctionExpres
Jennifer Messerly
2016/01/06 22:25:51
Yeah I think so. Was going to talk to Leaf and see
| |
8099 | |
8100 /** | |
8101 * Like [staticInvokeType], but reflects propagated type information. | |
8102 */ | |
8103 DartType propagatedInvokeType; | |
8104 | |
8105 /** | |
8091 * Initialize a newly created method invocation. The [target] and [operator] | 8106 * Initialize a newly created method invocation. The [target] and [operator] |
8092 * can be `null` if there is no target. | 8107 * can be `null` if there is no target. |
8093 */ | 8108 */ |
8094 MethodInvocation( | 8109 MethodInvocation( |
8095 Expression target, | 8110 Expression target, |
8096 this.operator, | 8111 this.operator, |
8097 SimpleIdentifier methodName, | 8112 SimpleIdentifier methodName, |
8098 TypeArgumentList typeArguments, | 8113 TypeArgumentList typeArguments, |
8099 ArgumentList argumentList) { | 8114 ArgumentList argumentList) { |
8100 _target = _becomeParentOf(target); | 8115 _target = _becomeParentOf(target); |
(...skipping 4192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
12293 } | 12308 } |
12294 | 12309 |
12295 @override | 12310 @override |
12296 accept(AstVisitor visitor) => visitor.visitYieldStatement(this); | 12311 accept(AstVisitor visitor) => visitor.visitYieldStatement(this); |
12297 | 12312 |
12298 @override | 12313 @override |
12299 void visitChildren(AstVisitor visitor) { | 12314 void visitChildren(AstVisitor visitor) { |
12300 _safelyVisitChild(_expression, visitor); | 12315 _safelyVisitChild(_expression, visitor); |
12301 } | 12316 } |
12302 } | 12317 } |
OLD | NEW |