Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the help text for the --dump option #546

Closed
marco-c opened this issue Mar 12, 2021 · 0 comments · Fixed by #555
Closed

Update the help text for the --dump option #546

marco-c opened this issue Mar 12, 2021 · 0 comments · Fixed by #555
Assignees
Labels
bug Something isn't working

Comments

@marco-c
Copy link
Collaborator

marco-c commented Mar 12, 2021

It currently says Specifies the output file, but actually the --dump option is dumping the AST to stdout, e.g.:

`- {program:121} from (1, 1) to (3, 1) 
   |- {lexical_declaration:134} from (1, 1) to (1, 18) : const x = y => y; 
   |  |- {const:14} from (1, 1) to (1, 6) : const 
   |  |- {variable_declarator:135} from (1, 7) to (1, 17) : x = y => y 
   |  |  |- {identifier:1} from (1, 7) to (1, 8) : x 
   |  |  |- {=:39} from (1, 9) to (1, 10) : = 
   |  |  `- {arrow_function:180} from (1, 11) to (1, 17) : y => y 
   |  |     |- {identifier:1} from (1, 11) to (1, 12) : y 
   |  |     |- {=>:52} from (1, 13) to (1, 15) : => 
   |  |     `- {identifier:1} from (1, 16) to (1, 17) : y 
   |  `- {;:33} from (1, 17) to (1, 18) : ; 
   `- {lexical_declaration:134} from (2, 1) to (2, 20) : const z = (t) => t; 
      |- {const:14} from (2, 1) to (2, 6) : const 
      |- {variable_declarator:135} from (2, 7) to (2, 19) : z = (t) => t 
      |  |- {identifier:1} from (2, 7) to (2, 8) : z 
      |  |- {=:39} from (2, 9) to (2, 10) : = 
      |  `- {arrow_function:180} from (2, 11) to (2, 19) : (t) => t 
      |     |- {formal_parameters:206} from (2, 11) to (2, 14) : (t) 
      |     |  |- {(:19} from (2, 11) to (2, 12) : ( 
      |     |  |- {identifier:1} from (2, 12) to (2, 13) : t 
      |     |  `- {):20} from (2, 13) to (2, 14) : ) 
      |     |- {=>:52} from (2, 15) to (2, 17) : => 
      |     `- {identifier:1} from (2, 18) to (2, 19) : t 
      `- {;:33} from (2, 19) to (2, 20) : ; 
@marco-c marco-c added the bug Something isn't working label Mar 16, 2021
@marco-c marco-c self-assigned this Mar 17, 2021
marco-c added a commit that referenced this issue Mar 17, 2021
marco-c added a commit that referenced this issue Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant