mirror of
https://github.com/github/semantic.git
synced 2024-11-24 08:54:07 +03:00
Some documentation for these parameter types
This commit is contained in:
parent
d8b260e35e
commit
c4df3ec5ab
@ -136,11 +136,17 @@ data Category
|
||||
| RescueArgs
|
||||
| When
|
||||
| Negate
|
||||
-- | An argument pair, e.g. foo(run: true) or foo(:run => true) in Ruby.
|
||||
| ArgumentPair
|
||||
-- | A keyword parameter, e.g. def foo(name:) or def foo(name:false) in Ruby.
|
||||
| KeywordParameter
|
||||
-- | An optional/default parameter, e.g. def foo(name = nil) in Ruby.
|
||||
| OptionalParameter
|
||||
-- | A splat parameter, e.g. def foo(*array) in Ruby.
|
||||
| SplatParameter
|
||||
-- | A hash splat parameter, e.g. def foo(**option) in Ruby.
|
||||
| HashSplatParameter
|
||||
-- | A block parameter, e.g. def foo(&block) in Ruby.
|
||||
| BlockParameter
|
||||
deriving (Eq, Generic, Ord, Show)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user