mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 03:21:20 -05:00
Implement @-prefixed parameters.
This commit is contained in:
@@ -203,7 +203,9 @@ grammar =
|
||||
# that hoovers up the remaining arguments.
|
||||
Param: [
|
||||
o "PARAM", -> new LiteralNode $1
|
||||
o "Param . . .", -> new SplatNode $1
|
||||
o "@ PARAM", -> new ParamNode $2, true
|
||||
o "PARAM . . .", -> new ParamNode $1, false, true
|
||||
o "@ PARAM . . .", -> new ParamNode $2, true, true
|
||||
]
|
||||
|
||||
# A splat that occurs outside of a parameter list.
|
||||
|
||||
Reference in New Issue
Block a user