Skip to content

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

Description

@marco-c

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) : ; 

Activity

  1. self-assigned this
    on Mar 17, 2021
  2. added a commit that references this issue on Mar 17, 2021
    eab5e6b
  3. added a commit that references this issue on Mar 17, 2021
    5795114
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions