backyard-parser 0.1.10

Parse PHP code to AST node.
Documentation
---
source: crates/backyard-parser/tests/method.rs
expression: asts
snapshot_kind: text
---
node_type: program
children:
  - node_type: class
    inheritance: Abstract
    name:
      node_type: identifier
      name:
        - 65
      loc:
        start:
          line: 1
          column: 15
          offset: 15
        end:
          line: 1
          column: 16
          offset: 16
      leadings: ~
      trailings: ~
    extends: ~
    implements: []
    body:
      node_type: block
      statements:
        - node_type: method
          visibility: Public
          inheritance: ~
          is_static: false
          function:
            node_type: function
            is_ref: false
            name:
              node_type: identifier
              name:
                - 97
              loc:
                start:
                  line: 2
                  column: 18
                  offset: 37
                end:
                  line: 2
                  column: 19
                  offset: 38
              leadings: ~
              trailings: ~
            parameters: []
            return_type: ~
            body:
              node_type: block
              statements: []
              loc:
                start:
                  line: 2
                  column: 22
                  offset: 41
                end:
                  line: 3
                  column: 2
                  offset: 45
              leadings: ~
              trailings: ~
            loc:
              start:
                line: 2
                column: 9
                offset: 28
              end:
                line: 3
                column: 2
                offset: 45
            leadings: ~
            trailings: ~
          loc:
            start:
              line: 2
              column: 2
              offset: 21
            end:
              line: 3
              column: 2
              offset: 45
          leadings: ~
          trailings: ~
        - node_type: method
          visibility: Public
          inheritance: Final
          is_static: true
          function:
            node_type: function
            is_ref: false
            name:
              node_type: identifier
              name:
                - 98
              loc:
                start:
                  line: 4
                  column: 31
                  offset: 78
                end:
                  line: 4
                  column: 32
                  offset: 79
              leadings: ~
              trailings: ~
            parameters: []
            return_type: ~
            body: ~
            loc:
              start:
                line: 4
                column: 22
                offset: 69
              end:
                line: 4
                column: 33
                offset: 80
            leadings: ~
            trailings: ~
          loc:
            start:
              line: 4
              column: 2
              offset: 49
            end:
              line: 4
              column: 33
              offset: 80
          leadings: ~
          trailings: ~
      loc:
        start:
          line: 1
          column: 17
          offset: 17
        end:
          line: 5
          column: 0
          offset: 83
      leadings: ~
      trailings: ~
    is_readonly: false
    loc:
      start:
        line: 1
        column: 0
        offset: 0
      end:
        line: 5
        column: 0
        offset: 83
    leadings: ~
    trailings: ~
loc:
  start:
    line: 1
    column: 0
    offset: 0
  end:
    line: 5
    column: 0
    offset: 83
leadings: ~
trailings: ~