mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-19 03:44:23 -05:00
simplifying RangeNode grammar a bit.
This commit is contained in:
@@ -550,9 +550,9 @@ exports.RangeNode = class RangeNode extends BaseNode
|
||||
class: 'RangeNode'
|
||||
children: ['from', 'to']
|
||||
|
||||
constructor: (@from, @to, exclusive) ->
|
||||
constructor: (@from, @to, tag) ->
|
||||
super()
|
||||
@exclusive = !!exclusive
|
||||
@exclusive = tag is 'exclusive'
|
||||
@equals = if @exclusive then '' else '='
|
||||
|
||||
# Compiles the range's source variables -- where it starts and where it ends.
|
||||
|
||||
Reference in New Issue
Block a user