mirror of
https://github.com/ruby/ruby.git
synced 2025-08-26 22:45:03 +02:00
Revert "Revert all of commits after Prism 0.19.0 release"
This reverts commit d242e8416e
.
This commit is contained in:
parent
12b69bf515
commit
fa251d60aa
41 changed files with 141 additions and 98 deletions
|
@ -42,7 +42,9 @@ module Prism
|
|||
|
||||
assert_kind_of Prism::CallNode, Prism.parse("foo").value.statements.body[0]
|
||||
assert_kind_of Prism::LocalVariableReadNode, Prism.parse("foo", scopes: [[:foo]]).value.statements.body[0]
|
||||
assert_equal 2, Prism.parse("foo", scopes: [[:foo], []]).value.statements.body[0].depth
|
||||
assert_equal 1, Prism.parse("foo", scopes: [[:foo], []]).value.statements.body[0].depth
|
||||
|
||||
assert_equal [:foo], Prism.parse("foo", scopes: [[:foo]]).value.locals
|
||||
end
|
||||
|
||||
def test_literal_value_method
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue