     super()
 
   compileNode: (o) ->
-    idx = @index.compile o
-    prefix = if @proto then '.prototype' else ''
-    "#{prefix}[#{idx}]"
+    "#{ if @proto then '.prototype' else '' }[#{ @index.compile o }]"
 
   isComplex: -> @index.isComplex()
 

# make sense.
exports.Return = class Return extends Base

  isStatement:      YES
  isPureStatement:  YES
  children:         ['expression']

  constructor: (@expression) ->
    super()

# The CoffeeScript class definition.
exports.Class = class Class extends Base

  children: ['variable', 'parent', 'properties']

  isStatement:  YES

  # Initialize a **Class** with its name, an optional superclass, and a
  # list of prototype property assignments.
  constructor: (variable, @parent, props) ->
    super()
    @variable   = if variable is '__temp__' then new Literal variable else variable
    @properties = props or []
    @returns    = false

  makeReturn: ->
