| 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 engine.resolver.element_resolver; | 5 library engine.resolver.element_resolver; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'ast.dart'; | 9 import 'ast.dart'; |
| 10 import 'element.dart'; | 10 import 'element.dart'; |
| (...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 ArgumentList argumentList = node.argumentList; | 624 ArgumentList argumentList = node.argumentList; |
| 625 if (staticElement != null) { | 625 if (staticElement != null) { |
| 626 staticElement.addUser(_resolver.enclosingFunction); | 626 staticElement.addUser(_resolver.enclosingFunction); |
| 627 List<ParameterElement> parameters = | 627 List<ParameterElement> parameters = |
| 628 _computeCorrespondingParameters(argumentList, staticElement); | 628 _computeCorrespondingParameters(argumentList, staticElement); |
| 629 if (parameters != null) { | 629 if (parameters != null) { |
| 630 argumentList.correspondingStaticParameters = parameters; | 630 argumentList.correspondingStaticParameters = parameters; |
| 631 } | 631 } |
| 632 } | 632 } |
| 633 if (propagatedElement != null) { | 633 if (propagatedElement != null) { |
| 634 propagatedElement.addUser(_resolver.enclosingFunction); |
| 634 List<ParameterElement> parameters = | 635 List<ParameterElement> parameters = |
| 635 _computeCorrespondingParameters(argumentList, propagatedElement); | 636 _computeCorrespondingParameters(argumentList, propagatedElement); |
| 636 if (parameters != null) { | 637 if (parameters != null) { |
| 637 argumentList.correspondingPropagatedParameters = parameters; | 638 argumentList.correspondingPropagatedParameters = parameters; |
| 638 } | 639 } |
| 639 } | 640 } |
| 640 // | 641 // |
| 641 // Then check for error conditions. | 642 // Then check for error conditions. |
| 642 // | 643 // |
| 643 ErrorCode errorCode = _checkForInvocationError(target, true, staticElement); | 644 ErrorCode errorCode = _checkForInvocationError(target, true, staticElement); |
| (...skipping 2472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3116 @override | 3117 @override |
| 3117 Element get staticElement => null; | 3118 Element get staticElement => null; |
| 3118 | 3119 |
| 3119 @override | 3120 @override |
| 3120 accept(AstVisitor visitor) => null; | 3121 accept(AstVisitor visitor) => null; |
| 3121 | 3122 |
| 3122 @override | 3123 @override |
| 3123 void visitChildren(AstVisitor visitor) { | 3124 void visitChildren(AstVisitor visitor) { |
| 3124 } | 3125 } |
| 3125 } | 3126 } |
| OLD | NEW |