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 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 // Generated by scripts/tree_gen.py. | 4 // Generated by scripts/tree_gen.py. |
5 | 5 |
6 ///////////////////////////////////////////////////////////////////////// | 6 ///////////////////////////////////////////////////////////////////////// |
7 // CSS specific types: | 7 // CSS specific types: |
8 ///////////////////////////////////////////////////////////////////////// | 8 ///////////////////////////////////////////////////////////////////////// |
9 | 9 |
10 class Identifier extends ASTNode { | 10 class Identifier extends ASTNode { |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 if (node.getters != null) { | 354 if (node.getters != null) { |
355 output.depth++; | 355 output.depth++; |
356 output.writeNodeList('---GETTERS---', node.getters); | 356 output.writeNodeList('---GETTERS---', node.getters); |
357 output.depth--; | 357 output.depth--; |
358 } | 358 } |
359 } | 359 } |
360 | 360 |
361 void visitTemplateDocument(TemplateDocument node) { | 361 void visitTemplateDocument(TemplateDocument node) { |
362 output.heading('Content', node.span); | 362 output.heading('Content', node.span); |
363 output.depth++; | 363 output.depth++; |
364 // TODO(terry): Ugly use of 'as Dynamic' instead of children[0] to | 364 // TODO(terry): Ugly use of 'as dynamic' instead of children[0] to |
365 // surpress warning. | 365 // surpress warning. |
366 assert(node.children.length == 1 && | 366 assert(node.children.length == 1 && |
367 (node.children as Dynamic)[0].tagTokenId == -1); | 367 (node.children as dynamic)[0].tagTokenId == -1); |
368 output.writeNodeList("document", node.children); | 368 output.writeNodeList("document", node.children); |
369 output.depth--; | 369 output.depth--; |
370 } | 370 } |
371 | 371 |
372 void visitTemplateElement(TemplateElement node) { | 372 void visitTemplateElement(TemplateElement node) { |
373 output.heading('Element', node.span); | 373 output.heading('Element', node.span); |
374 output.depth++; | 374 output.depth++; |
375 output.writeValue('tag', node.tagName); | 375 output.writeValue('tag', node.tagName); |
376 if (node.attributes != null && (node.attributes.length > 0)) { | 376 if (node.attributes != null && (node.attributes.length > 0)) { |
377 output.writeNodeList("attributes", node.attributes); | 377 output.writeNodeList("attributes", node.attributes); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 output.writeValue('params', node.params); | 416 output.writeValue('params', node.params); |
417 } | 417 } |
418 | 418 |
419 void visitTemplateGetter(TemplateGetter node) { | 419 void visitTemplateGetter(TemplateGetter node) { |
420 output.heading('template getter', node.span); | 420 output.heading('template getter', node.span); |
421 output.writeValue('getter Signature', node.getterSignatureAsString()); | 421 output.writeValue('getter Signature', node.getterSignatureAsString()); |
422 visitTemplateDocument(node.docFrag); | 422 visitTemplateDocument(node.docFrag); |
423 } | 423 } |
424 } | 424 } |
425 | 425 |
OLD | NEW |