       if not ok
         codeobj.error = [(start: 0, end: codeobj.code.length)]
 
-    return
+    return @errors
 
   arrangeCodes: (start_x, start_y) ->
     y = start_y

collections = []
shapes = ['circle','square','hex']
next_shape = 0

# keyboard input
pendingString = ''

engage = (str) ->

  }
]

code_list_dropdown_menu = [
  {
    name: 'convert to tree',
    action: (c, t) ->
      console.log('convert to tree')
      c.convertToTree()
  },
  {
    name: 'delete'
    action: (c, t) ->
      console.log('delete')
      c.delete_flag = true
  },
]


class NodeCollection
  constructor: (@shape) ->
    @nodes = []
