1
1
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:
Charlie Somerville 2018-04-11 15:47:52 +10:00
parent cdb5672b27
commit a81beeb125
4 changed files with 4 additions and 8 deletions

View File

@ -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

View File

@ -6,8 +6,7 @@
{+(Identifier)+}
{ ([])
->(Plus
{+(Send
{+(Identifier)+})+}
{+(Identifier)+}
{+(Integer)+}) }))
{-(Send
{-(Identifier)-}

View File

@ -5,8 +5,7 @@
(Empty)
{-(Identifier)-}
{ (Plus
{-(Send
{-(Identifier)-})-}
{-(Identifier)-}
{-(Integer)-})
->([]) }))
{+(Send

View File

@ -5,6 +5,5 @@
(Empty)
(Identifier)
(Plus
(Send
(Identifier))
(Identifier)
(Integer)))))