mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 11:31:20 -05:00
CoffeeScript-in-CoffeeScript can compile @property references.
This commit is contained in:
@@ -473,6 +473,18 @@ IndexNode: exports.IndexNode: inherit Node, {
|
||||
}
|
||||
|
||||
|
||||
# A this-reference, using '@'.
|
||||
ThisNode: exports.ThisNode: inherit Node, {
|
||||
|
||||
constructor: (property) ->
|
||||
@property: property or null
|
||||
|
||||
compile_node: (o) ->
|
||||
'this' + (if @property then '.' + @property else '')
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user