public common_property_node(string name, common_type_node comprehensive_type, location loc, SemanticTree.field_access_level field_access_level, SemanticTree.polymorphic_state polymorphic_state) { _name = name; _comprehensive_type = comprehensive_type; _loc = loc; _field_access_level = field_access_level; _polymorphic_state = polymorphic_state; }
public class_field(string name, type_node type, common_type_node cont_class, SemanticTree.polymorphic_state polymorphic_state, SemanticTree.field_access_level field_access_level, location loc) : base(name, type) { _cont_class = cont_class; _polymorphic_state = polymorphic_state; _field_access_level = field_access_level; _loc = loc; }
public common_event(string name, type_node del_type, common_type_node cont_type, common_method_node add_method, common_method_node remove_method, common_method_node raise_method, SemanticTree.field_access_level fal, SemanticTree.polymorphic_state ps, location loc) { this._name = name; this.del_type = del_type; this._add_method = add_method; this._remove_method = remove_method; this._raise_method = raise_method; this._field_access_level = fal; this._polymorphic_state = ps; this._cont_type = cont_type; this._loc = loc; }
/// <summary> /// Конструктор узла. /// </summary> /// <param name="name">Имя функции.</param> /// <param name="ret_type"></param> /// <param name="loc">Расположение имени метода в программе.</param> /// <param name="cont_type">Тип, который содержит этот метод.</param> /// <param name="polymorphic_state">Обычный, виртуальный или статический метод.</param> /// <param name="field_access_level">Уровень доступа к методу.</param> /// <param name="scope">Пространство имен функции.</param> public common_method_node(string name,type_node ret_type, location loc, common_type_node cont_type, SemanticTree.polymorphic_state polymorphic_state, SemanticTree.field_access_level field_access_level, SymbolTable.Scope scope) : base(name,ret_type,loc,scope) { _cont_type=cont_type; _field_access_level = field_access_level; _polymorphic_state = polymorphic_state; }
public class_field(string name,type_node type,common_type_node cont_class, SemanticTree.polymorphic_state polymorphic_state, SemanticTree.field_access_level field_access_level, location loc): base(name,type) { _cont_class=cont_class; _polymorphic_state=polymorphic_state; _field_access_level=field_access_level; _loc = loc; }
public common_property_node(string name,common_type_node comprehensive_type,type_node property_type, function_node get_function,function_node set_function,location loc, SemanticTree.field_access_level field_access_level, SemanticTree.polymorphic_state polymorphic_state) { _name=name; _comprehensive_type=comprehensive_type; _property_type=property_type; _get_function=get_function; _set_function=set_function; _loc = loc; _field_access_level = field_access_level; _polymorphic_state = polymorphic_state; }