mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
removing the nearly-unused notion of 'operation sensitive'
This commit is contained in:
@@ -45,7 +45,7 @@ exports.BaseNode: class BaseNode
|
||||
compile: (o) ->
|
||||
@options: merge o or {}
|
||||
@tab: o.indent
|
||||
del @options, 'operation' unless @operation_sensitive()
|
||||
del @options, 'operation' unless this instanceof ValueNode
|
||||
top: if @top_sensitive() then @options.top else del @options, 'top'
|
||||
closure: @is_statement() and not @is_pure_statement() and not top and
|
||||
not @options.returns and not (this instanceof CommentNode) and
|
||||
@@ -103,7 +103,6 @@ exports.BaseNode: class BaseNode
|
||||
is_statement: -> false
|
||||
is_pure_statement: -> false
|
||||
top_sensitive: -> false
|
||||
operation_sensitive: -> false
|
||||
|
||||
#### Expressions
|
||||
|
||||
@@ -247,9 +246,6 @@ exports.ValueNode: class ValueNode extends BaseNode
|
||||
@children.push(prop)
|
||||
this
|
||||
|
||||
operation_sensitive: ->
|
||||
true
|
||||
|
||||
has_properties: ->
|
||||
!!@properties.length
|
||||
|
||||
|
||||
Reference in New Issue
Block a user