ast-demo
tree Demo Source File
This file presents a bunch of javascript for tree convert tool tes.t
It contains various constructs, including:
- Block comments
- Inline comments
- Class declarations
This comment is the first block comment in the file.
Meta Data
| filepath_exists | True |
| path | ast-demo |
| filepath | ast-demo.js |
| clean_files | () |
-
ClassDeclarationclass
ParentClass
extends Arrayclass comments:Comment outside for the class
Comment inside for the class
-
dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
this is the header block comment for Symbol.toPrimitive a very special method that converts an object to a primitive value based on the given hint.
ClassDeclarationclassPrimary
extends ParentClassclass comments:This is the header comment for the Primary class. Just within the class declaration.
This is the Primary class which extends ParentClass.ExpressionStatement:
dict_keys(['type', 'expression', 'pos'])ExpressionStatement:
dict_keys(['type', 'expression', 'pos'])
stackItem1 A Multiline block comment for stackItem1
stackItem1 inline comment for