---
source: full-moon/tests/pass_cases.rs
assertion_line: 52
expression: ast.nodes()
input_file: full-moon/tests/cases/pass/return-break
---
stmts:
  - - Do:
        do_token:
          leading_trivia: []
          token:
            start_position:
              bytes: 0
              line: 1
              character: 1
            end_position:
              bytes: 2
              line: 1
              character: 3
            token_type:
              type: Symbol
              symbol: do
          trailing_trivia:
            - start_position:
                bytes: 2
                line: 1
                character: 3
              end_position:
                bytes: 3
                line: 1
                character: 3
              token_type:
                type: Whitespace
                characters: "\n"
        block:
          stmts: []
          last_stmt:
            - Return:
                token:
                  leading_trivia:
                    - start_position:
                        bytes: 3
                        line: 2
                        character: 1
                      end_position:
                        bytes: 4
                        line: 2
                        character: 2
                      token_type:
                        type: Whitespace
                        characters: "\t"
                  token:
                    start_position:
                      bytes: 4
                      line: 2
                      character: 2
                    end_position:
                      bytes: 10
                      line: 2
                      character: 8
                    token_type:
                      type: Symbol
                      symbol: return
                  trailing_trivia:
                    - start_position:
                        bytes: 10
                        line: 2
                        character: 8
                      end_position:
                        bytes: 11
                        line: 2
                        character: 9
                      token_type:
                        type: Whitespace
                        characters: " "
                returns:
                  pairs:
                    - End:
                        Number:
                          leading_trivia: []
                          token:
                            start_position:
                              bytes: 11
                              line: 2
                              character: 9
                            end_position:
                              bytes: 12
                              line: 2
                              character: 10
                            token_type:
                              type: Number
                              text: "1"
                          trailing_trivia:
                            - start_position:
                                bytes: 12
                                line: 2
                                character: 10
                              end_position:
                                bytes: 13
                                line: 2
                                character: 10
                              token_type:
                                type: Whitespace
                                characters: "\n"
            - ~
        end_token:
          leading_trivia: []
          token:
            start_position:
              bytes: 13
              line: 3
              character: 1
            end_position:
              bytes: 16
              line: 3
              character: 4
            token_type:
              type: Symbol
              symbol: end
          trailing_trivia:
            - start_position:
                bytes: 16
                line: 3
                character: 4
              end_position:
                bytes: 17
                line: 3
                character: 4
              token_type:
                type: Whitespace
                characters: "\n"
    - ~
  - - Do:
        do_token:
          leading_trivia:
            - start_position:
                bytes: 17
                line: 4
                character: 1
              end_position:
                bytes: 18
                line: 4
                character: 1
              token_type:
                type: Whitespace
                characters: "\n"
          token:
            start_position:
              bytes: 18
              line: 5
              character: 1
            end_position:
              bytes: 20
              line: 5
              character: 3
            token_type:
              type: Symbol
              symbol: do
          trailing_trivia:
            - start_position:
                bytes: 20
                line: 5
                character: 3
              end_position:
                bytes: 21
                line: 5
                character: 3
              token_type:
                type: Whitespace
                characters: "\n"
        block:
          stmts: []
          last_stmt:
            - Break:
                leading_trivia:
                  - start_position:
                      bytes: 21
                      line: 6
                      character: 1
                    end_position:
                      bytes: 22
                      line: 6
                      character: 2
                    token_type:
                      type: Whitespace
                      characters: "\t"
                token:
                  start_position:
                    bytes: 22
                    line: 6
                    character: 2
                  end_position:
                    bytes: 27
                    line: 6
                    character: 7
                  token_type:
                    type: Symbol
                    symbol: break
                trailing_trivia:
                  - start_position:
                      bytes: 27
                      line: 6
                      character: 7
                    end_position:
                      bytes: 28
                      line: 6
                      character: 7
                    token_type:
                      type: Whitespace
                      characters: "\n"
            - ~
        end_token:
          leading_trivia: []
          token:
            start_position:
              bytes: 28
              line: 7
              character: 1
            end_position:
              bytes: 31
              line: 7
              character: 4
            token_type:
              type: Symbol
              symbol: end
          trailing_trivia:
            - start_position:
                bytes: 31
                line: 7
                character: 4
              end_position:
                bytes: 32
                line: 7
                character: 4
              token_type:
                type: Whitespace
                characters: "\n"
    - ~
last_stmt:
  - Return:
      token:
        leading_trivia:
          - start_position:
              bytes: 32
              line: 8
              character: 1
            end_position:
              bytes: 33
              line: 8
              character: 1
            token_type:
              type: Whitespace
              characters: "\n"
        token:
          start_position:
            bytes: 33
            line: 9
            character: 1
          end_position:
            bytes: 39
            line: 9
            character: 7
          token_type:
            type: Symbol
            symbol: return
        trailing_trivia:
          - start_position:
              bytes: 39
              line: 9
              character: 7
            end_position:
              bytes: 40
              line: 9
              character: 8
            token_type:
              type: Whitespace
              characters: " "
      returns:
        pairs:
          - End:
              FunctionCall:
                prefix:
                  Name:
                    leading_trivia: []
                    token:
                      start_position:
                        bytes: 40
                        line: 9
                        character: 8
                      end_position:
                        bytes: 44
                        line: 9
                        character: 12
                      token_type:
                        type: Identifier
                        identifier: call
                    trailing_trivia: []
                suffixes:
                  - Call:
                      AnonymousCall:
                        Parentheses:
                          parentheses:
                            tokens:
                              - leading_trivia: []
                                token:
                                  start_position:
                                    bytes: 44
                                    line: 9
                                    character: 12
                                  end_position:
                                    bytes: 45
                                    line: 9
                                    character: 13
                                  token_type:
                                    type: Symbol
                                    symbol: (
                                trailing_trivia: []
                              - leading_trivia: []
                                token:
                                  start_position:
                                    bytes: 45
                                    line: 9
                                    character: 13
                                  end_position:
                                    bytes: 46
                                    line: 9
                                    character: 14
                                  token_type:
                                    type: Symbol
                                    symbol: )
                                trailing_trivia:
                                  - start_position:
                                      bytes: 46
                                      line: 9
                                      character: 14
                                    end_position:
                                      bytes: 47
                                      line: 9
                                      character: 14
                                    token_type:
                                      type: Whitespace
                                      characters: "\n"
                          arguments:
                            pairs: []
  - ~

