class IDL::Delegator

def define_template_module(global, names)

def define_template_module(global, names)
  if global || names.size > 1
    raise "no scoped identifier allowed for template module: #{(global ? '::' : '') + names.join('::')}"
  end
  @cur = @cur.define(IDL::AST::TemplateModule, names[0])
  @cur.annotations.concat(@annotation_stack)
  @annotation_stack = IDL::AST::Annotations.new
  set_last
  @cur
end