| 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.resolver; | 5 library analyzer.src.generated.resolver; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
| 10 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; | 10 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; |
| (...skipping 10058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10069 @override | 10069 @override |
| 10070 Object visitSimpleFormalParameter(SimpleFormalParameter node) { | 10070 Object visitSimpleFormalParameter(SimpleFormalParameter node) { |
| 10071 super.visitSimpleFormalParameter(node); | 10071 super.visitSimpleFormalParameter(node); |
| 10072 DartType declaredType; | 10072 DartType declaredType; |
| 10073 TypeAnnotation typeName = node.type; | 10073 TypeAnnotation typeName = node.type; |
| 10074 if (typeName == null) { | 10074 if (typeName == null) { |
| 10075 declaredType = _dynamicType; | 10075 declaredType = _dynamicType; |
| 10076 } else { | 10076 } else { |
| 10077 declaredType = _typeNameResolver._getType(typeName); | 10077 declaredType = _typeNameResolver._getType(typeName); |
| 10078 } | 10078 } |
| 10079 Element element = node.identifier.staticElement; | 10079 Element element = node.element; |
| 10080 if (element is ParameterElementImpl) { | 10080 if (element is ParameterElementImpl) { |
| 10081 element.declaredType = declaredType; | 10081 element.declaredType = declaredType; |
| 10082 } else { | 10082 } else { |
| 10083 // TODO(brianwilkerson) Report the internal error. | 10083 // TODO(brianwilkerson) Report the internal error. |
| 10084 } | 10084 } |
| 10085 return null; | 10085 return null; |
| 10086 } | 10086 } |
| 10087 | 10087 |
| 10088 @override | 10088 @override |
| 10089 Object visitSuperExpression(SuperExpression node) { | 10089 Object visitSuperExpression(SuperExpression node) { |
| (...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10899 return null; | 10899 return null; |
| 10900 } | 10900 } |
| 10901 if (identical(node.staticElement, variable)) { | 10901 if (identical(node.staticElement, variable)) { |
| 10902 if (node.inSetterContext()) { | 10902 if (node.inSetterContext()) { |
| 10903 result = true; | 10903 result = true; |
| 10904 } | 10904 } |
| 10905 } | 10905 } |
| 10906 return null; | 10906 return null; |
| 10907 } | 10907 } |
| 10908 } | 10908 } |
| OLD | NEW |