summaryrefslogtreecommitdiff
path: root/lib/prism/debug.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/prism/debug.rb')
-rw-r--r--lib/prism/debug.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/prism/debug.rb b/lib/prism/debug.rb
index 553205a04b..74f824faa7 100644
--- a/lib/prism/debug.rb
+++ b/lib/prism/debug.rb
@@ -55,7 +55,7 @@ module Prism
verbose, $VERBOSE = $VERBOSE, nil
begin
- locals = []
+ locals = [] #: Array[Array[Symbol | Integer]]
stack = [ISeq.new(RubyVM::InstructionSequence.compile(source).to_a)]
while (iseq = stack.pop)
@@ -96,8 +96,8 @@ module Prism
# For the given source, parses with prism and returns a list of all of the
# sets of local variables that were encountered.
def self.prism_locals(source)
- locals = []
- stack = [Prism.parse(source).value]
+ locals = [] #: Array[Array[Symbol | Integer]]
+ stack = [Prism.parse(source).value] #: Array[Prism::node]
while (node = stack.pop)
case node