   class NameClass
 
   class AnyName extends NameClass
-    constructor: (nameClassNode, exceptPattern) ->
+    constructor: (exceptPattern) ->
       @except = getPattern exceptPattern
     toString: =>
       if @except instanceof NotAllowed

      return node
    if not node
      return new NotAllowed()
    foo = switch node.local
      when 'element' then new Element children[0], children[1]
      when 'define' then new Define _getAttr(node, "name"), children[0]
      when 'notAllowed' then new NotAllowed()

      when 'choice' then new Choice children[0], children[1]
      when 'group' then new Group children[0], children[1]
      when 'interleave' then new Interleave children[0], children[1]
      when "anyName" then new AnyName children[0]
      when "nsName" then new NsName _getAttr(node, "ns"), children[0]
      when "name" then new Name _getAttr(node, "ns"), children[0]
      when "choice" then new Choice children[0], children[1]
      when 'except' then getPattern children[0]
      when 'param' then new Param _getAttr(node, "name"), children[0]
      else
        throw new RNGException("can't parse pattern for #{node.local}")
    pattern


  class RNGException extends Error
