mirror of
https://github.com/github/semantic.git
synced 2024-12-21 13:51:44 +03:00
Any statement as parameter
This commit is contained in:
parent
2235b5a614
commit
96910c7d55
@ -192,13 +192,13 @@ scopeResolution = makeTerm <$> symbol ScopeResolution <*> children (Expression.S
|
||||
|
||||
parameter :: Assignment
|
||||
parameter =
|
||||
identifier
|
||||
<|> mk SplatParameter
|
||||
mk SplatParameter
|
||||
<|> mk HashSplatParameter
|
||||
<|> mk BlockParameter
|
||||
<|> mk KeywordParameter
|
||||
<|> mk OptionalParameter
|
||||
<|> makeTerm <$> symbol DestructuredParameter <*> children (many parameter)
|
||||
<|> statement
|
||||
where mk s = makeTerm <$> symbol s <*> (Syntax.Identifier <$> source)
|
||||
|
||||
method :: Assignment
|
||||
|
Loading…
Reference in New Issue
Block a user