diff options
Diffstat (limited to 'test/prism/snapshots/seattlerb/defn_oneliner.txt')
-rw-r--r-- | test/prism/snapshots/seattlerb/defn_oneliner.txt | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/test/prism/snapshots/seattlerb/defn_oneliner.txt b/test/prism/snapshots/seattlerb/defn_oneliner.txt new file mode 100644 index 0000000000..e700499809 --- /dev/null +++ b/test/prism/snapshots/seattlerb/defn_oneliner.txt @@ -0,0 +1,47 @@ +@ ProgramNode (location: (1,0)-(1,27)) +├── locals: [] +└── statements: + @ StatementsNode (location: (1,0)-(1,27)) + └── body: (length: 1) + └── @ DefNode (location: (1,0)-(1,27)) + ├── name: :exec + ├── name_loc: (1,4)-(1,8) = "exec" + ├── receiver: ∅ + ├── parameters: + │ @ ParametersNode (location: (1,9)-(1,12)) + │ ├── requireds: (length: 1) + │ │ └── @ RequiredParameterNode (location: (1,9)-(1,12)) + │ │ ├── flags: ∅ + │ │ └── name: :cmd + │ ├── optionals: (length: 0) + │ ├── rest: ∅ + │ ├── posts: (length: 0) + │ ├── keywords: (length: 0) + │ ├── keyword_rest: ∅ + │ └── block: ∅ + ├── body: + │ @ StatementsNode (location: (1,16)-(1,27)) + │ └── body: (length: 1) + │ └── @ CallNode (location: (1,16)-(1,27)) + │ ├── flags: ignore_visibility + │ ├── receiver: ∅ + │ ├── call_operator_loc: ∅ + │ ├── name: :system + │ ├── message_loc: (1,16)-(1,22) = "system" + │ ├── opening_loc: (1,22)-(1,23) = "(" + │ ├── arguments: + │ │ @ ArgumentsNode (location: (1,23)-(1,26)) + │ │ ├── flags: ∅ + │ │ └── arguments: (length: 1) + │ │ └── @ LocalVariableReadNode (location: (1,23)-(1,26)) + │ │ ├── name: :cmd + │ │ └── depth: 0 + │ ├── closing_loc: (1,26)-(1,27) = ")" + │ └── block: ∅ + ├── locals: [:cmd] + ├── def_keyword_loc: (1,0)-(1,3) = "def" + ├── operator_loc: ∅ + ├── lparen_loc: (1,8)-(1,9) = "(" + ├── rparen_loc: (1,12)-(1,13) = ")" + ├── equal_loc: (1,14)-(1,15) = "=" + └── end_keyword_loc: ∅ |