| 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 $LIBRARYNAME; | 5 part of $LIBRARYNAME; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * Lazy implementation of the child nodes of an element that does not request | 8 * Lazy implementation of the child nodes of an element that does not request |
| 9 * the actual child nodes of an element until strictly necessary greatly | 9 * the actual child nodes of an element until strictly necessary greatly |
| 10 * improving performance for the typical cases where it is not required. | 10 * improving performance for the typical cases where it is not required. |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 /** Unbinds the attribute [name]. */ | 265 /** Unbinds the attribute [name]. */ |
| 266 @Experimental | 266 @Experimental |
| 267 void unbind(String name) {} | 267 void unbind(String name) {} |
| 268 | 268 |
| 269 /** Unbinds all bound attributes. */ | 269 /** Unbinds all bound attributes. */ |
| 270 @Experimental | 270 @Experimental |
| 271 void unbindAll() {} | 271 void unbindAll() {} |
| 272 | 272 |
| 273 TemplateInstance _templateInstance; | 273 TemplateInstance _templateInstance; |
| 274 | 274 |
| 275 // TODO(arv): Consider storing all "NodeRareData" on a single object? | |
| 276 int __instanceTerminatorCount; | |
| 277 int get _instanceTerminatorCount { | |
| 278 if (__instanceTerminatorCount == null) return 0; | |
| 279 return __instanceTerminatorCount; | |
| 280 } | |
| 281 set _instanceTerminatorCount(int value) { | |
| 282 if (value == 0) value = null; | |
| 283 __instanceTerminatorCount = value; | |
| 284 } | |
| 285 | |
| 286 /** Gets the template instance that instantiated this node, if any. */ | 275 /** Gets the template instance that instantiated this node, if any. */ |
| 287 @Experimental | 276 @Experimental |
| 288 TemplateInstance get templateInstance => | 277 TemplateInstance get templateInstance => |
| 289 _templateInstance != null ? _templateInstance : | 278 _templateInstance != null ? _templateInstance : |
| 290 (parent != null ? parent.templateInstance : null); | 279 (parent != null ? parent.templateInstance : null); |
| 291 | 280 |
| 292 $!MEMBERS | 281 $!MEMBERS |
| 293 } | 282 } |
| OLD | NEW |