| 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.element_resolver; | 5 library analyzer.src.generated.element_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/token.dart'; | 10 import 'package:analyzer/dart/ast/token.dart'; |
| (...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1111 // | 1111 // |
| 1112 if (node.parent is Annotation) { | 1112 if (node.parent is Annotation) { |
| 1113 Annotation annotation = node.parent as Annotation; | 1113 Annotation annotation = node.parent as Annotation; |
| 1114 _resolveAnnotationElement(annotation); | 1114 _resolveAnnotationElement(annotation); |
| 1115 } | 1115 } |
| 1116 return null; | 1116 return null; |
| 1117 } | 1117 } |
| 1118 | 1118 |
| 1119 @override | 1119 @override |
| 1120 Object visitSuperConstructorInvocation(SuperConstructorInvocation node) { | 1120 Object visitSuperConstructorInvocation(SuperConstructorInvocation node) { |
| 1121 ClassElementImpl enclosingClass = _resolver.enclosingClass; | 1121 ClassElementImpl enclosingClass = |
| 1122 ClassElementImpl.getImpl(_resolver.enclosingClass); |
| 1122 if (enclosingClass == null) { | 1123 if (enclosingClass == null) { |
| 1123 // TODO(brianwilkerson) Report this error. | 1124 // TODO(brianwilkerson) Report this error. |
| 1124 return null; | 1125 return null; |
| 1125 } | 1126 } |
| 1126 InterfaceType superType = enclosingClass.supertype; | 1127 InterfaceType superType = enclosingClass.supertype; |
| 1127 if (superType == null) { | 1128 if (superType == null) { |
| 1128 // TODO(brianwilkerson) Report this error. | 1129 // TODO(brianwilkerson) Report this error. |
| 1129 return null; | 1130 return null; |
| 1130 } | 1131 } |
| 1131 SimpleIdentifier name = node.constructorName; | 1132 SimpleIdentifier name = node.constructorName; |
| (...skipping 1452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2584 | 2585 |
| 2585 @override | 2586 @override |
| 2586 Element get staticElement => null; | 2587 Element get staticElement => null; |
| 2587 | 2588 |
| 2588 @override | 2589 @override |
| 2589 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => null; | 2590 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => null; |
| 2590 | 2591 |
| 2591 @override | 2592 @override |
| 2592 void visitChildren(AstVisitor visitor) {} | 2593 void visitChildren(AstVisitor visitor) {} |
| 2593 } | 2594 } |
| OLD | NEW |