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

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

Issue 11233061: Revert "Parts must start with 'part of'" and "Attempt to fix VM build" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 part of universe;
6
7 class SelectorMap<T> extends PartialTypeTree { 5 class SelectorMap<T> extends PartialTypeTree {
8 6
9 SelectorMap(Compiler compiler) : super(compiler); 7 SelectorMap(Compiler compiler) : super(compiler);
10 8
11 SelectorMapNode<T> newSpecializedNode(ClassElement type) 9 SelectorMapNode<T> newSpecializedNode(ClassElement type)
12 => new SelectorMapNode<T>(type); 10 => new SelectorMapNode<T>(type);
13 11
14 T operator [](Selector selector) { 12 T operator [](Selector selector) {
15 SelectorMapNode<T> node = findNode(selectorType(selector), false); 13 SelectorMapNode<T> node = findNode(selectorType(selector), false);
16 if (node == null) return null; 14 if (node == null) return null;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 selectorsByName = new Map<SourceString, Link<SelectorValue<T>>>(); 121 selectorsByName = new Map<SourceString, Link<SelectorValue<T>>>();
124 122
125 } 123 }
126 124
127 class SelectorValue<T> { 125 class SelectorValue<T> {
128 final Selector selector; 126 final Selector selector;
129 T value; 127 T value;
130 SelectorValue(this.selector, this.value); 128 SelectorValue(this.selector, this.value);
131 toString() => "$selector -> $value"; 129 toString() => "$selector -> $value";
132 } 130 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698