mirror of
https://github.com/github/semantic.git
synced 2024-12-22 06:11:49 +03:00
ruby: make parameter assignment more strict in accepted symbols
This commit is contained in:
parent
c5be01e8a0
commit
d08c675318
@ -229,13 +229,14 @@ scopeResolution = makeTerm <$> symbol ScopeResolution <*> children (Expression.S
|
||||
|
||||
parameter :: Assignment
|
||||
parameter =
|
||||
mk SplatParameter
|
||||
mk Identifier
|
||||
<|> mk Identifier'
|
||||
<|> mk SplatParameter
|
||||
<|> mk HashSplatParameter
|
||||
<|> mk BlockParameter
|
||||
<|> mk KeywordParameter
|
||||
<|> mk OptionalParameter
|
||||
<|> makeTerm <$> symbol DestructuredParameter <*> children (many parameter)
|
||||
<|> expression
|
||||
where mk s = makeTerm <$> symbol s <*> (Syntax.Identifier . name <$> source)
|
||||
|
||||
method :: Assignment
|
||||
|
Loading…
Reference in New Issue
Block a user