mirror of
https://github.com/github/semantic.git
synced 2024-11-28 10:15:55 +03:00
Fix begin/end blocks (scope entry/exit)
This commit is contained in:
parent
7ff488b91c
commit
5abb457ecd
6
test/fixtures/ruby/begin-block.diffA-B.txt
vendored
6
test/fixtures/ruby/begin-block.diffA-B.txt
vendored
@ -1,5 +1,5 @@
|
|||||||
(Program
|
(Program
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
(BeginBlock
|
(ScopeEntry
|
||||||
{ (Identifier)
|
{+(Identifier)+}
|
||||||
->(Identifier) }))
|
{-(Identifier)-}))
|
||||||
|
4
test/fixtures/ruby/begin-block.diffB-A.txt
vendored
4
test/fixtures/ruby/begin-block.diffB-A.txt
vendored
@ -1,6 +1,6 @@
|
|||||||
(Program
|
(Program
|
||||||
{+(BeginBlock
|
{+(ScopeEntry
|
||||||
(Identifier))+}
|
(Identifier))+}
|
||||||
{-(Identifier)-}
|
{-(Identifier)-}
|
||||||
{-(BeginBlock
|
{-(ScopeEntry
|
||||||
(Identifier))-})
|
(Identifier))-})
|
||||||
|
2
test/fixtures/ruby/begin-block.parseA.txt
vendored
2
test/fixtures/ruby/begin-block.parseA.txt
vendored
@ -1,3 +1,3 @@
|
|||||||
(Program
|
(Program
|
||||||
(BeginBlock
|
(ScopeEntry
|
||||||
(Identifier)))
|
(Identifier)))
|
||||||
|
2
test/fixtures/ruby/begin-block.parseB.txt
vendored
2
test/fixtures/ruby/begin-block.parseB.txt
vendored
@ -1,4 +1,4 @@
|
|||||||
(Program
|
(Program
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(BeginBlock
|
(ScopeEntry
|
||||||
(Identifier)))
|
(Identifier)))
|
||||||
|
6
test/fixtures/ruby/end-block.diffA-B.txt
vendored
6
test/fixtures/ruby/end-block.diffA-B.txt
vendored
@ -1,5 +1,5 @@
|
|||||||
(Program
|
(Program
|
||||||
{+(Identifier)+}
|
{+(Identifier)+}
|
||||||
(EndBlock
|
(ScopeExit
|
||||||
{ (Identifier)
|
{+(Identifier)+}
|
||||||
->(Identifier) }))
|
{-(Identifier)-}))
|
||||||
|
4
test/fixtures/ruby/end-block.diffB-A.txt
vendored
4
test/fixtures/ruby/end-block.diffB-A.txt
vendored
@ -1,6 +1,6 @@
|
|||||||
(Program
|
(Program
|
||||||
{+(EndBlock
|
{+(ScopeExit
|
||||||
(Identifier))+}
|
(Identifier))+}
|
||||||
{-(Identifier)-}
|
{-(Identifier)-}
|
||||||
{-(EndBlock
|
{-(ScopeExit
|
||||||
(Identifier))-})
|
(Identifier))-})
|
||||||
|
2
test/fixtures/ruby/end-block.parseA.txt
vendored
2
test/fixtures/ruby/end-block.parseA.txt
vendored
@ -1,3 +1,3 @@
|
|||||||
(Program
|
(Program
|
||||||
(EndBlock
|
(ScopeExit
|
||||||
(Identifier)))
|
(Identifier)))
|
||||||
|
2
test/fixtures/ruby/end-block.parseB.txt
vendored
2
test/fixtures/ruby/end-block.parseB.txt
vendored
@ -1,4 +1,4 @@
|
|||||||
(Program
|
(Program
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(EndBlock
|
(ScopeExit
|
||||||
(Identifier)))
|
(Identifier)))
|
||||||
|
Loading…
Reference in New Issue
Block a user