diff options
Diffstat (limited to 'test/prism/snapshots/seattlerb/defn_arg_asplat_arg.txt')
-rw-r--r-- | test/prism/snapshots/seattlerb/defn_arg_asplat_arg.txt | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/test/prism/snapshots/seattlerb/defn_arg_asplat_arg.txt b/test/prism/snapshots/seattlerb/defn_arg_asplat_arg.txt new file mode 100644 index 0000000000..3f2bdf44a4 --- /dev/null +++ b/test/prism/snapshots/seattlerb/defn_arg_asplat_arg.txt @@ -0,0 +1,37 @@ +@ ProgramNode (location: (1,0)-(1,29)) +├── locals: [] +└── statements: + @ StatementsNode (location: (1,0)-(1,29)) + └── body: (length: 1) + └── @ DefNode (location: (1,0)-(1,29)) + ├── name: :call + ├── name_loc: (1,4)-(1,8) = "call" + ├── receiver: ∅ + ├── parameters: + │ @ ParametersNode (location: (1,9)-(1,24)) + │ ├── requireds: (length: 1) + │ │ └── @ RequiredParameterNode (location: (1,9)-(1,15)) + │ │ ├── flags: ∅ + │ │ └── name: :interp + │ ├── optionals: (length: 0) + │ ├── rest: + │ │ @ RestParameterNode (location: (1,17)-(1,18)) + │ │ ├── flags: ∅ + │ │ ├── name: ∅ + │ │ ├── name_loc: ∅ + │ │ └── operator_loc: (1,17)-(1,18) = "*" + │ ├── posts: (length: 1) + │ │ └── @ RequiredParameterNode (location: (1,20)-(1,24)) + │ │ ├── flags: ∅ + │ │ └── name: :args + │ ├── keywords: (length: 0) + │ ├── keyword_rest: ∅ + │ └── block: ∅ + ├── body: ∅ + ├── locals: [:interp, :args] + ├── def_keyword_loc: (1,0)-(1,3) = "def" + ├── operator_loc: ∅ + ├── lparen_loc: (1,8)-(1,9) = "(" + ├── rparen_loc: (1,24)-(1,25) = ")" + ├── equal_loc: ∅ + └── end_keyword_loc: (1,26)-(1,29) = "end" |