backyard-parser 0.1.10

Parse PHP code to AST node.
Documentation
---
source: crates/backyard-parser/tests/enums.rs
expression: asts
snapshot_kind: text
---
node_type: program
children:
  - node_type: enum
    name:
      node_type: identifier
      name:
        - 83
        - 117
        - 105
        - 116
      loc:
        start:
          line: 1
          column: 5
          offset: 5
        end:
          line: 1
          column: 9
          offset: 9
      leadings: ~
      trailings: ~
    enum_type: ~
    implements: ~
    body:
      - node_type: enum_item
        value:
          node_type: identifier
          name:
            - 72
            - 101
            - 97
            - 114
            - 116
            - 115
          loc:
            start:
              line: 2
              column: 7
              offset: 19
            end:
              line: 2
              column: 13
              offset: 25
          leadings: ~
          trailings: ~
        loc:
          start:
            line: 2
            column: 2
            offset: 14
          end:
            line: 2
            column: 7
            offset: 19
        leadings: ~
        trailings: ~
      - node_type: enum_item
        value:
          node_type: identifier
          name:
            - 83
            - 112
            - 97
            - 100
            - 101
            - 115
          loc:
            start:
              line: 3
              column: 7
              offset: 34
            end:
              line: 3
              column: 13
              offset: 40
          leadings: ~
          trailings: ~
        loc:
          start:
            line: 3
            column: 2
            offset: 29
          end:
            line: 3
            column: 7
            offset: 34
        leadings: ~
        trailings: ~
    loc:
      start:
        line: 1
        column: 0
        offset: 0
      end:
        line: 4
        column: 0
        offset: 42
    leadings: ~
    trailings: ~
loc:
  start:
    line: 1
    column: 0
    offset: 0
  end:
    line: 4
    column: 0
    offset: 42
leadings: ~
trailings: ~