| 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 computer.overrides; | |
| 6 | |
| 7 import 'package:analysis_server/src/collections.dart'; | 5 import 'package:analysis_server/src/collections.dart'; |
| 8 import 'package:analysis_server/src/protocol_server.dart' as proto; | 6 import 'package:analysis_server/src/protocol_server.dart' as proto; |
| 9 import 'package:analyzer/dart/ast/ast.dart'; | 7 import 'package:analyzer/dart/ast/ast.dart'; |
| 10 import 'package:analyzer/dart/element/element.dart'; | 8 import 'package:analyzer/dart/element/element.dart'; |
| 11 import 'package:analyzer/dart/element/type.dart'; | 9 import 'package:analyzer/dart/element/type.dart'; |
| 12 | 10 |
| 13 /** | 11 /** |
| 14 * Return the elements that the given [element] overrides. | 12 * Return the elements that the given [element] overrides. |
| 15 */ | 13 */ |
| 16 OverriddenElements findOverriddenElements(Element element) { | 14 OverriddenElements findOverriddenElements(Element element) { |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 if (_kinds.contains(ElementKind.SETTER)) { | 228 if (_kinds.contains(ElementKind.SETTER)) { |
| 231 member = classElement.lookUpSetter(_name + '=', _library); | 229 member = classElement.lookUpSetter(_name + '=', _library); |
| 232 if (member != null) { | 230 if (member != null) { |
| 233 return member; | 231 return member; |
| 234 } | 232 } |
| 235 } | 233 } |
| 236 // not found | 234 // not found |
| 237 return null; | 235 return null; |
| 238 } | 236 } |
| 239 } | 237 } |
| OLD | NEW |