mirror of
https://github.com/github/semantic.git
synced 2024-12-25 07:55:12 +03:00
ruby: register parameters as local identifier names
This commit is contained in:
parent
cdb5672b27
commit
a81beeb125
@ -230,8 +230,7 @@ scopeResolution = makeTerm <$> symbol ScopeResolution <*> children (Expression.S
|
||||
|
||||
parameter :: Assignment
|
||||
parameter =
|
||||
mk Identifier
|
||||
<|> mk Identifier'
|
||||
lhsIdent
|
||||
<|> mk SplatParameter
|
||||
<|> mk HashSplatParameter
|
||||
<|> mk BlockParameter
|
||||
|
3
test/fixtures/ruby/lambda.diffA-B.txt
vendored
3
test/fixtures/ruby/lambda.diffA-B.txt
vendored
@ -6,8 +6,7 @@
|
||||
{+(Identifier)+}
|
||||
{ ([])
|
||||
->(Plus
|
||||
{+(Send
|
||||
{+(Identifier)+})+}
|
||||
{+(Identifier)+}
|
||||
{+(Integer)+}) }))
|
||||
{-(Send
|
||||
{-(Identifier)-}
|
||||
|
3
test/fixtures/ruby/lambda.diffB-A.txt
vendored
3
test/fixtures/ruby/lambda.diffB-A.txt
vendored
@ -5,8 +5,7 @@
|
||||
(Empty)
|
||||
{-(Identifier)-}
|
||||
{ (Plus
|
||||
{-(Send
|
||||
{-(Identifier)-})-}
|
||||
{-(Identifier)-}
|
||||
{-(Integer)-})
|
||||
->([]) }))
|
||||
{+(Send
|
||||
|
3
test/fixtures/ruby/lambda.parseB.txt
vendored
3
test/fixtures/ruby/lambda.parseB.txt
vendored
@ -5,6 +5,5 @@
|
||||
(Empty)
|
||||
(Identifier)
|
||||
(Plus
|
||||
(Send
|
||||
(Identifier))
|
||||
(Identifier)
|
||||
(Integer)))))
|
||||
|
Loading…
Reference in New Issue
Block a user