class IDL::Delegator

def declare_template_reference(name, type, tpl_params)

def declare_template_reference(name, type, tpl_params)
  params = {}
  params[:tpl_type] = type
  params[:tpl_params] = tpl_params || []
  params[:annotations] = @annotation_stack
  @annotation_stack = IDL::AST::Annotations.new
  set_last(@cur.define(IDL::AST::TemplateModuleReference, name, params))
  @cur
end