mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 03:21:20 -05:00
removed all traces of 'extends' -- it's not any shorter or more convenient than just setting the prototype
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user