public AssemblyFacet(XElement xelement) : base(xelement) { Namespaces = new FacetList <NamespaceFacet>(xelement, "Namespace"); References = new FacetList <CodeFacet>(xelement, "Reference"); Path = XElementAttributeValue(xelement, "Path"); }
public MethodFacet(XElement xelement) : base(xelement) { Parameters = new FacetList <ParameterFacet>(xelement, "Parameter"); IsGenericMethod = XElementAttributeBool(xelement, "IsGenericMethod"); IsGenericMethodDefinition = XElementAttributeBool(xelement, "IsGenericMethodDefinition"); ContainsGenericMethodParameters = XElementAttributeBool(xelement, "ContainsGenericMethodParameters"); }
public InterfaceFacet(XElement xelement) : base(xelement) { Properties = new FacetList <PropertyFacet>(xelement, "Property"); ImplementedInterfaces = new FacetList <ImplementedInterfaceFacet>(xelement, "ImplementedInterface"); Methods = new FacetList <MethodFacet>(xelement, "Method"); ParseMethodsForOverrides(Methods); }
public ClassFacet(XElement xelement) : base(xelement) { Fields = new FacetList <FieldFacet>(xelement, "Field"); Constructors = new FacetList <MethodFacet>(xelement, "Constructor"); // process the constructors foreach (MethodFacet facet in Constructors) { facet.Name = null; // constructor name must be null facet.Type = this.Type; // constructor type matches class type } ParseMethodsForOverrides(Constructors); }
public NamespaceFacet(XElement xelement) : base(xelement) { Classes = new FacetList <ClassFacet>(xelement, "Class"); Interfaces = new FacetList <InterfaceFacet>(xelement, "Interface"); Enumerations = new FacetList <EnumerationFacet>(xelement, "Enumeration"); Structs = new FacetList <StructFacet>(xelement, "Struct"); // Managed interfaces do not derive from a base type // but we want to treat them like an object that does foreach (InterfaceFacet facet in Interfaces) { facet.SetDefaultBaseType(); } }
public ImplementedInterfaceFacet(XElement xelement) : base(xelement) { GenericTypeParameters = new FacetList <ParameterFacet>(xelement, "GenericTypeParameter"); }
public EnumerationFacet(XElement xelement) : base(xelement) { Fields = new FacetList <FieldFacet>(xelement, "Field"); }