Esempio n. 1
0
        protected virtual void Process(HierarchyObject parent, ApiImplements implements)
        {
            var hierarchyImplements = CreateHierarchyElementInternal <HierarchyImplements> (parent);

            hierarchyImplements.Init(implements);
            parent.AddMember(hierarchyImplements);
        }
Esempio n. 2
0
        protected virtual void Process(HierarchyObject parent, ApiField field)
        {
            var hierarchyField = CreateHierarchyElementInternal <HierarchyField> (parent);

            hierarchyField.Init(field);
            AddLocationComment(field, hierarchyField);
            parent.AddMember(hierarchyField);
        }
Esempio n. 3
0
        protected virtual void Process(HierarchyObject parent, ApiTypeParameter typeParameter)
        {
            var hierarchyTypeParameter = CreateHierarchyElementInternal <HierarchyTypeParameter> (parent);

            hierarchyTypeParameter.Init(typeParameter);
            AddTypeParameterGenericConstraints(hierarchyTypeParameter, typeParameter);
            parent.AddMember(hierarchyTypeParameter);
        }
Esempio n. 4
0
        protected virtual void Process(HierarchyObject parent, ApiConstructor constructor)
        {
            var hierarchyConstructor = CreateHierarchyElementInternal <HierarchyConstructor> (parent);

            hierarchyConstructor.Init(constructor);
            AddLocationComment(constructor, hierarchyConstructor);
            AddMethodMembers(hierarchyConstructor, constructor);
            parent.AddMember(hierarchyConstructor);
        }
Esempio n. 5
0
        protected virtual void Process(HierarchyObject parent, ApiMethod method)
        {
            var hierarchyMethod = CreateHierarchyElementInternal <HierarchyMethod> (parent);

            hierarchyMethod.Init(method);
            AddLocationComment(method, hierarchyMethod);
            AddMethodMembers(hierarchyMethod, method);
            parent.AddMember(hierarchyMethod);
        }
Esempio n. 6
0
        protected void AddBaseType(HierarchyObject baseType)
        {
            if (baseType == null)
            {
                throw new ArgumentNullException(nameof(baseType));
            }

            if (baseTypes == null)
            {
                baseTypes = new List <HierarchyObject> ();
            }
            else if (baseTypes.Contains(baseType))
            {
                return;
            }
            baseTypes.Add(baseType);
        }
Esempio n. 7
0
 public HierarchyConstructor(GeneratorContext context, HierarchyObject parent) : base(context, parent)
 {
 }
Esempio n. 8
0
 public HierarchyField(GeneratorContext context, HierarchyObject parent) : base(context, parent)
 {
 }
Esempio n. 9
0
 public HierarchyTypeMember(GeneratorContext context, HierarchyObject parent) : base(context, parent)
 {
 }