mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-04-11 03:00:13 -04:00
allowing chained function calls, one right after another
This commit is contained in:
@@ -259,12 +259,13 @@ rule
|
|||||||
|
|
||||||
# Extending an object's prototype.
|
# Extending an object's prototype.
|
||||||
Extends:
|
Extends:
|
||||||
Value EXTENDS Expression { result = ExtendsNode.new(val[0], val[2]) }
|
Value EXTENDS Expression { result = ExtendsNode.new(val[0], val[2]) }
|
||||||
;
|
;
|
||||||
|
|
||||||
# A generic function invocation.
|
# A generic function invocation.
|
||||||
Invocation:
|
Invocation:
|
||||||
Value "(" ArgList ")" { result = CallNode.new(val[0], val[2]) }
|
Value "(" ArgList ")" { result = CallNode.new(val[0], val[2]) }
|
||||||
|
| Invocation "(" ArgList ")" { result = CallNode.new(val[0], val[2]) }
|
||||||
;
|
;
|
||||||
|
|
||||||
# Calling super.
|
# Calling super.
|
||||||
|
|||||||
Reference in New Issue
Block a user