removing the nearly-unused notion of 'operation sensitive'

This commit is contained in:
Jeremy Ashkenas
2010-03-10 20:19:32 -05:00
parent 55cac23976
commit 7b0a235c71
2 changed files with 2 additions and 12 deletions

View File

@@ -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