Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(409)

Side by Side Diff: pkg/analysis_server/lib/src/computer/computer_overrides.dart

Issue 2894883002: Remove more libraries directives from server (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/computer/computer_hover.dart ('k') | pkg/analysis_server/lib/src/constants.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698