| OLD | NEW |
| 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 // TODO(kasperl): This actually holds getters and setters just fine | 7 // TODO(kasperl): This actually holds getters and setters just fine |
| 6 // too and stricly they aren't functions. Maybe this needs a better | 8 // too and stricly they aren't functions. Maybe this needs a better |
| 7 // name -- something like ElementSet seems a bit too generic. | 9 // name -- something like ElementSet seems a bit too generic. |
| 8 class FunctionSet extends PartialTypeTree { | 10 class FunctionSet extends PartialTypeTree { |
| 9 | 11 |
| 10 FunctionSet(Compiler compiler) : super(compiler); | 12 FunctionSet(Compiler compiler) : super(compiler); |
| 11 | 13 |
| 12 FunctionSetNode newSpecializedNode(ClassElement type) | 14 FunctionSetNode newSpecializedNode(ClassElement type) |
| 13 => new FunctionSetNode(type); | 15 => new FunctionSetNode(type); |
| 14 | 16 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 } | 131 } |
| 130 | 132 |
| 131 class FunctionSetNode extends PartialTypeTreeNode { | 133 class FunctionSetNode extends PartialTypeTreeNode { |
| 132 | 134 |
| 133 final Map<SourceString, Element> membersByName; | 135 final Map<SourceString, Element> membersByName; |
| 134 | 136 |
| 135 FunctionSetNode(ClassElement type) : super(type), | 137 FunctionSetNode(ClassElement type) : super(type), |
| 136 membersByName = new Map<SourceString, Element>(); | 138 membersByName = new Map<SourceString, Element>(); |
| 137 | 139 |
| 138 } | 140 } |
| OLD | NEW |