OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 library fletchc.model; | 5 library fletchc.model; |
6 | 6 |
7 import 'dart:mirrors' as mirrors; | 7 import 'dart:mirrors' as mirrors; |
8 | 8 |
9 /** | 9 /** |
10 * Indirection from the class mirror. This allows us to adapt the interface | 10 * Indirection from the class mirror. This allows us to adapt the interface |
11 * here as needed. | 11 * here as needed. |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 /** | 169 /** |
170 * Represents reusing the implementation from [reuseFrom]. | 170 * Represents reusing the implementation from [reuseFrom]. |
171 */ | 171 */ |
172 MirrorBuilder.fromMirror(this.reuseFrom) | 172 MirrorBuilder.fromMirror(this.reuseFrom) |
173 : this.newSource = null; | 173 : this.newSource = null; |
174 | 174 |
175 bool get hasSource => newSource != null; | 175 bool get hasSource => newSource != null; |
176 bool get isReusing => reuseFrom != null; | 176 bool get isReusing => reuseFrom != null; |
177 } | 177 } |
178 | 178 |
OLD | NEW |