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 5857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5868 ArgumentList _argumentList; | 5868 ArgumentList _argumentList; |
5869 | 5869 |
5870 /** | 5870 /** |
5871 * The element associated with the function being invoked based on static type | 5871 * The element associated with the function being invoked based on static type |
5872 * information, or `null` if the AST structure has not been resolved or the | 5872 * information, or `null` if the AST structure has not been resolved or the |
5873 * function could not be resolved. | 5873 * function could not be resolved. |
5874 */ | 5874 */ |
5875 ExecutableElement staticElement; | 5875 ExecutableElement staticElement; |
5876 | 5876 |
5877 /** | 5877 /** |
| 5878 * The function type of the method invocation, or `null` if the AST |
| 5879 * structure has not been resolved, or if the invoke could not be resolved. |
| 5880 * |
| 5881 * This will usually be a [FunctionType], but it can also be an |
| 5882 * [InterfaceType] with a `call` method, `dynamic`, `Function`, or a `@proxy` |
| 5883 * interface type that implements `Function`. |
| 5884 */ |
| 5885 DartType staticInvokeType; |
| 5886 |
| 5887 /** |
5878 * The element associated with the function being invoked based on propagated | 5888 * The element associated with the function being invoked based on propagated |
5879 * type information, or `null` if the AST structure has not been resolved or | 5889 * type information, or `null` if the AST structure has not been resolved or |
5880 * the function could not be resolved. | 5890 * the function could not be resolved. |
5881 */ | 5891 */ |
5882 ExecutableElement propagatedElement; | 5892 ExecutableElement propagatedElement; |
5883 | 5893 |
5884 /** | 5894 /** |
| 5895 * Like [staticInvokeType], but reflects propagated type information. |
| 5896 */ |
| 5897 DartType propagatedInvokeType; |
| 5898 |
| 5899 /** |
5885 * Initialize a newly created function expression invocation. | 5900 * Initialize a newly created function expression invocation. |
5886 */ | 5901 */ |
5887 FunctionExpressionInvocation(Expression function, | 5902 FunctionExpressionInvocation(Expression function, |
5888 TypeArgumentList typeArguments, ArgumentList argumentList) { | 5903 TypeArgumentList typeArguments, ArgumentList argumentList) { |
5889 _function = _becomeParentOf(function); | 5904 _function = _becomeParentOf(function); |
5890 _typeArguments = _becomeParentOf(typeArguments); | 5905 _typeArguments = _becomeParentOf(typeArguments); |
5891 _argumentList = _becomeParentOf(argumentList); | 5906 _argumentList = _becomeParentOf(argumentList); |
5892 } | 5907 } |
5893 | 5908 |
5894 /** | 5909 /** |
(...skipping 6413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12308 } | 12323 } |
12309 | 12324 |
12310 @override | 12325 @override |
12311 accept(AstVisitor visitor) => visitor.visitYieldStatement(this); | 12326 accept(AstVisitor visitor) => visitor.visitYieldStatement(this); |
12312 | 12327 |
12313 @override | 12328 @override |
12314 void visitChildren(AstVisitor visitor) { | 12329 void visitChildren(AstVisitor visitor) { |
12315 _safelyVisitChild(_expression, visitor); | 12330 _safelyVisitChild(_expression, visitor); |
12316 } | 12331 } |
12317 } | 12332 } |
OLD | NEW |