| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 | 3 |
| 4 class TagStack { | 4 class TagStack { |
| 5 List<ASTNode> _stack; | 5 List<ASTNode> _stack; |
| 6 | 6 |
| 7 TagStack(var elem) : _stack = [] { | 7 TagStack(var elem) : _stack = [] { |
| 8 _stack.add(elem); | 8 _stack.add(elem); |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 // html foo() { | 282 // html foo() { |
| 283 // <div>..</div> | 283 // <div>..</div> |
| 284 // } | 284 // } |
| 285 // | 285 // |
| 286 // C.) | 286 // C.) |
| 287 // get { | 287 // get { |
| 288 // <div>...</div> | 288 // <div>...</div> |
| 289 // } | 289 // } |
| 290 // | 290 // |
| 291 // D.) | 291 // D.) |
| 292 // get foo() { | 292 // get foo { |
| 293 // <div>..</div> | 293 // <div>..</div> |
| 294 // } | 294 // } |
| 295 // | 295 // |
| 296 // Only one default allower either A or C the constructor will | 296 // Only one default allower either A or C the constructor will |
| 297 // generate a string or a node. | 297 // generate a string or a node. |
| 298 // Examples B and D would generate getters that either return | 298 // Examples B and D would generate getters that either return |
| 299 // a node for B or a String for D. | 299 // a node for B or a String for D. |
| 300 // | 300 // |
| 301 List<TemplateGetter> processGetters() { | 301 List<TemplateGetter> processGetters() { |
| 302 List<TemplateGetter> getters = []; | 302 List<TemplateGetter> getters = []; |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 711 } | 711 } |
| 712 | 712 |
| 713 if (stringValue.length > 0) { | 713 if (stringValue.length > 0) { |
| 714 nodes.add(new TemplateText(stringValue.toString(), _makeSpan(start))); | 714 nodes.add(new TemplateText(stringValue.toString(), _makeSpan(start))); |
| 715 } | 715 } |
| 716 | 716 |
| 717 return nodes; | 717 return nodes; |
| 718 } | 718 } |
| 719 | 719 |
| 720 } | 720 } |
| OLD | NEW |