removed all traces of 'extends' -- it's not any shorter or more convenient than just setting the prototype

This commit is contained in:
Jeremy Ashkenas
2009-12-22 12:08:29 -05:00
parent ec58d6fda2
commit e916d4648d
13 changed files with 27 additions and 38 deletions

View File

@@ -213,21 +213,6 @@ module CoffeeScript
end
end
class ExtendNode < Node
attr_reader :subclass, :superclass
def initialize(subclass, superclass)
@subclass, @superclass = subclass, superclass
end
def compile(o={})
o = super(o)
"#{@subclass}.prototype = #{@superclass.compile(o)}"
end
end
# A value, indexed or dotted into, or vanilla.
class ValueNode < Node
attr_reader :literal, :properties, :last