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

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

Issue 11262032: Add 'part of' in dart2js code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 part of universe;
6
5 class SelectorMap<T> extends PartialTypeTree { 7 class SelectorMap<T> extends PartialTypeTree {
6 8
7 SelectorMap(Compiler compiler) : super(compiler); 9 SelectorMap(Compiler compiler) : super(compiler);
8 10
9 SelectorMapNode<T> newSpecializedNode(ClassElement type) 11 SelectorMapNode<T> newSpecializedNode(ClassElement type)
10 => new SelectorMapNode<T>(type); 12 => new SelectorMapNode<T>(type);
11 13
12 T operator [](Selector selector) { 14 T operator [](Selector selector) {
13 SelectorMapNode<T> node = findNode(selectorType(selector), false); 15 SelectorMapNode<T> node = findNode(selectorType(selector), false);
14 if (node == null) return null; 16 if (node == null) return null;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 selectorsByName = new Map<SourceString, Link<SelectorValue<T>>>(); 123 selectorsByName = new Map<SourceString, Link<SelectorValue<T>>>();
122 124
123 } 125 }
124 126
125 class SelectorValue<T> { 127 class SelectorValue<T> {
126 final Selector selector; 128 final Selector selector;
127 T value; 129 T value;
128 SelectorValue(this.selector, this.value); 130 SelectorValue(this.selector, this.value);
129 toString() => "$selector -> $value"; 131 toString() => "$selector -> $value";
130 } 132 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/universe/partial_type_tree.dart ('k') | lib/compiler/implementation/util/characters.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698