public virtual void visit(ICompiledTypeNode value) { }
public void visit(IProgramNode value, TreeNodeCollection t) { string s = value.GetType().Name + "."; ICompiledTypeNode[] ctn = new ICompiledTypeNode[0]; prepare_base_node_collection(ctn, "compiled types", "->", 0); prepare_node(value.main_function, s + "main_function"); prepare_base_node_collection(value.namespaces, s + value.namespaces[0].GetType().Name + "_list : namespaces", "namespaces", value.namespaces.Length); }
public void visit(ICompiledTypeNode value) { string s = value.GetType().Name + "."; prepare_string_node(value.name, s + "name"); prepare_node(value.base_type, s + "base_type"); prepare_string_node(value.compiled_type.ToString(), s + "compiled_type"); // ??????? Как это надо отображать? prepare_node(value.element_type, s + "element_type"); //prepare_node(value.generic_container, s + "generic_container"); prepare_base_node_collection_up_links(value.ImplementingInterfaces, s + "ImplementingInterfaces", "ImplementingInterfaces", value.ImplementingInterfaces.Count); prepare_string_node(value.is_class.ToString(), s + "is_class"); prepare_string_node(value.is_generic_parameter.ToString(), s + "is_generic_parameter"); prepare_string_node(value.is_generic_type_definition.ToString(), s + "is_generic_type_definition"); prepare_string_node(value.is_value_type.ToString(), s + "is_value_type"); prepare_string_node(value.IsInterface.ToString(), s + "IsInterface"); prepare_string_node(value.node_kind.ToString(), s + "node_kind"); prepare_string_node(value.type_special_kind.ToString(), s + "type_special_kind"); }
public void visit(ICompiledTypeNode value) { throw new System.NotSupportedException(value.GetType().ToString()); }