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