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

Side by Side Diff: dart/lib/compiler/implementation/universe/universe.dart

Issue 11184046: Clean up leg.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased on CL 11187067 Created 8 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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('universe'); 5 library universe;
6 6
7 #import('../closure.dart'); 7 import '../closure.dart';
8 #import('../elements/elements.dart'); 8 import '../elements/elements.dart';
9 #import('../leg.dart'); 9 import '../dart2jslib.dart';
10 #import('../scanner/scannerlib.dart'); 10 import '../runtime_types.dart';
11 #import('../runtime_types.dart'); 11 import '../tree/tree.dart';
12 #import('../tree/tree.dart'); 12 import '../util/util.dart';
13 #import('../util/util.dart');
14 13
15 #source('function_set.dart'); 14 part 'function_set.dart';
16 #source('partial_type_tree.dart'); 15 part 'partial_type_tree.dart';
17 #source('selector_map.dart'); 16 part 'selector_map.dart';
18 17
19 class Universe { 18 class Universe {
20 /** 19 /**
21 * Documentation wanted -- johnniwinther 20 * Documentation wanted -- johnniwinther
22 * 21 *
23 * Invariant: Key elements are declaration elements. 22 * Invariant: Key elements are declaration elements.
24 */ 23 */
25 Map<Element, CodeBuffer> generatedCode; 24 Map<Element, CodeBuffer> generatedCode;
26 25
27 /** 26 /**
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 529
531 if (!self.isInterface() && self.isSubclassOf(other)) { 530 if (!self.isInterface() && self.isSubclassOf(other)) {
532 // Resolve an invocation of [element.name] on [self]. If it 531 // Resolve an invocation of [element.name] on [self]. If it
533 // is found, this selector is a candidate. 532 // is found, this selector is a candidate.
534 return hasElementIn(self, element) && appliesUntyped(element, compiler); 533 return hasElementIn(self, element) && appliesUntyped(element, compiler);
535 } 534 }
536 535
537 return false; 536 return false;
538 } 537 }
539 } 538 }
OLDNEW
« no previous file with comments | « dart/lib/compiler/implementation/types/types.dart ('k') | dart/lib/compiler/samples/leap/leap.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698