///<summary> ///Конструктор с параметрами. ///</summary> public class_definition(type_definition_attr_list _attr_list,named_type_reference_list _class_parents,class_body _body,class_keyword _keyword,ident_list _template_args,where_definition_list _where_section,class_attribute _attribute,bool _is_auto,SourceContext sc) { this._attr_list=_attr_list; this._class_parents=_class_parents; this._body=_body; this._keyword=_keyword; this._template_args=_template_args; this._where_section=_where_section; this._attribute=_attribute; this._is_auto=_is_auto; source_context = sc; }
private string GetClassKeyword(class_keyword key) { switch (key) { case class_keyword.Class: return "class"; case class_keyword.Interface: return "interface"; case class_keyword.Record: return "record"; case class_keyword.TemplateClass: return "template class"; case class_keyword.TemplateInterface: return "template interface"; case class_keyword.TemplateRecord: return "template record"; } throw new NotSupportedException(); }
///<summary> ///Конструктор с параметрами. ///</summary> public class_definition(named_type_reference_list _class_parents,class_body _body,class_keyword _keyword,ident_list _template_args,where_definition_list _where_section,class_attribute _attribute,bool _is_auto) { this._class_parents=_class_parents; this._body=_body; this._keyword=_keyword; this._template_args=_template_args; this._where_section=_where_section; this._attribute=_attribute; this._is_auto=_is_auto; }
public override string GetClassKeyword(class_keyword keyw) { switch (keyw) { case class_keyword.Class: return "Class"; case class_keyword.Interface: return "Interface"; case class_keyword.Record: case class_keyword.Struct: return "Struct"; } return ""; }