| 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.error_verifier; | 5 library analyzer.src.generated.error_verifier; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import "dart:math" as math; | 8 import "dart:math" as math; |
| 9 | 9 |
| 10 import 'package:analyzer/dart/ast/ast.dart'; | 10 import 'package:analyzer/dart/ast/ast.dart'; |
| (...skipping 2836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2847 InterfaceType enclosingType = _enclosingClass.type; | 2847 InterfaceType enclosingType = _enclosingClass.type; |
| 2848 // check every accessor | 2848 // check every accessor |
| 2849 for (PropertyAccessorElement accessor in _enclosingClass.accessors) { | 2849 for (PropertyAccessorElement accessor in _enclosingClass.accessors) { |
| 2850 // we analyze instance accessors here | 2850 // we analyze instance accessors here |
| 2851 if (accessor.isStatic) { | 2851 if (accessor.isStatic) { |
| 2852 continue; | 2852 continue; |
| 2853 } | 2853 } |
| 2854 // prepare accessor properties | 2854 // prepare accessor properties |
| 2855 String name = accessor.displayName; | 2855 String name = accessor.displayName; |
| 2856 bool getter = accessor.isGetter; | 2856 bool getter = accessor.isGetter; |
| 2857 // if non-final variable, ignore setter - we alreay reported problem for | 2857 // if non-final variable, ignore setter - we already reported problem for |
| 2858 // getter | 2858 // getter |
| 2859 if (accessor.isSetter && accessor.isSynthetic) { | 2859 if (accessor.isSetter && accessor.isSynthetic) { |
| 2860 continue; | 2860 continue; |
| 2861 } | 2861 } |
| 2862 // try to find super element | 2862 // try to find super element |
| 2863 ExecutableElement superElement; | 2863 ExecutableElement superElement; |
| 2864 superElement = | 2864 superElement = |
| 2865 enclosingType.lookUpGetterInSuperclass(name, _currentLibrary); | 2865 enclosingType.lookUpGetterInSuperclass(name, _currentLibrary); |
| 2866 if (superElement == null) { | 2866 if (superElement == null) { |
| 2867 superElement = | 2867 superElement = |
| (...skipping 4291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7159 class _InvocationCollector extends RecursiveAstVisitor { | 7159 class _InvocationCollector extends RecursiveAstVisitor { |
| 7160 final List<String> superCalls = <String>[]; | 7160 final List<String> superCalls = <String>[]; |
| 7161 | 7161 |
| 7162 @override | 7162 @override |
| 7163 visitMethodInvocation(MethodInvocation node) { | 7163 visitMethodInvocation(MethodInvocation node) { |
| 7164 if (node.target is SuperExpression) { | 7164 if (node.target is SuperExpression) { |
| 7165 superCalls.add(node.methodName.name); | 7165 superCalls.add(node.methodName.name); |
| 7166 } | 7166 } |
| 7167 } | 7167 } |
| 7168 } | 7168 } |
| OLD | NEW |