---
source: full-moon/tests/fail_cases.rs
expression: result.ast()
---
nodes:
  stmts:
    - - FunctionCall:
          prefix:
            Name:
              leading_trivia: []
              token:
                start_position:
                  bytes: 0
                  line: 1
                  character: 1
                end_position:
                  bytes: 5
                  line: 1
                  character: 6
                token_type:
                  type: Identifier
                  identifier: print
              trailing_trivia: []
          suffixes:
            - Call:
                AnonymousCall:
                  Parentheses:
                    parentheses:
                      tokens:
                        - leading_trivia: []
                          token:
                            start_position:
                              bytes: 5
                              line: 1
                              character: 6
                            end_position:
                              bytes: 6
                              line: 1
                              character: 7
                            token_type:
                              type: Symbol
                              symbol: (
                          trailing_trivia: []
                        - leading_trivia: []
                          token:
                            start_position:
                              bytes: 9
                              line: 1
                              character: 10
                            end_position:
                              bytes: 10
                              line: 1
                              character: 11
                            token_type:
                              type: Symbol
                              symbol: )
                          trailing_trivia:
                            - start_position:
                                bytes: 10
                                line: 1
                                character: 11
                              end_position:
                                bytes: 11
                                line: 1
                                character: 11
                              token_type:
                                type: Whitespace
                                characters: "\n"
                    arguments:
                      pairs:
                        - End:
                            String:
                              leading_trivia: []
                              token:
                                start_position:
                                  bytes: 6
                                  line: 1
                                  character: 7
                                end_position:
                                  bytes: 9
                                  line: 1
                                  character: 10
                                token_type:
                                  type: StringLiteral
                                  literal: "1"
                                  quote_type: Double
                              trailing_trivia: []
      - ~
    - - FunctionCall:
          prefix:
            Name:
              leading_trivia: []
              token:
                start_position:
                  bytes: 19
                  line: 3
                  character: 1
                end_position:
                  bytes: 24
                  line: 3
                  character: 6
                token_type:
                  type: Identifier
                  identifier: print
              trailing_trivia: []
          suffixes:
            - Call:
                AnonymousCall:
                  Parentheses:
                    parentheses:
                      tokens:
                        - leading_trivia: []
                          token:
                            start_position:
                              bytes: 24
                              line: 3
                              character: 6
                            end_position:
                              bytes: 25
                              line: 3
                              character: 7
                            token_type:
                              type: Symbol
                              symbol: (
                          trailing_trivia: []
                        - leading_trivia: []
                          token:
                            start_position:
                              bytes: 28
                              line: 3
                              character: 10
                            end_position:
                              bytes: 29
                              line: 3
                              character: 11
                            token_type:
                              type: Symbol
                              symbol: )
                          trailing_trivia:
                            - start_position:
                                bytes: 29
                                line: 3
                                character: 11
                              end_position:
                                bytes: 30
                                line: 3
                                character: 11
                              token_type:
                                type: Whitespace
                                characters: "\n"
                    arguments:
                      pairs:
                        - End:
                            String:
                              leading_trivia: []
                              token:
                                start_position:
                                  bytes: 25
                                  line: 3
                                  character: 7
                                end_position:
                                  bytes: 28
                                  line: 3
                                  character: 10
                                token_type:
                                  type: StringLiteral
                                  literal: "2"
                                  quote_type: Double
                              trailing_trivia: []
      - ~
  last_stmt:
    - Return:
        token:
          leading_trivia: []
          token:
            start_position:
              bytes: 11
              line: 2
              character: 1
            end_position:
              bytes: 17
              line: 2
              character: 7
            token_type:
              type: Symbol
              symbol: return
          trailing_trivia: []
        returns:
          pairs: []
    - leading_trivia: []
      token:
        start_position:
          bytes: 17
          line: 2
          character: 7
        end_position:
          bytes: 18
          line: 2
          character: 8
        token_type:
          type: Symbol
          symbol: ;
      trailing_trivia:
        - start_position:
            bytes: 18
            line: 2
            character: 8
          end_position:
            bytes: 19
            line: 2
            character: 8
          token_type:
            type: Whitespace
            characters: "\n"
eof:
  leading_trivia: []
  token:
    start_position:
      bytes: 30
      line: 4
      character: 1
    end_position:
      bytes: 30
      line: 4
      character: 1
    token_type:
      type: Eof
  trailing_trivia: []

