protected virtual void Process(HierarchyMethod parent, ApiException exception) { var hierarchyException = CreateHierarchyElementInternal <HierarchyException> (parent); hierarchyException.Init(exception); parent.AddMember(hierarchyException); }
protected virtual void Process(HierarchyMethod parent, ApiTypeParameter typeParameter) { var hierarchyTypeParameter = CreateHierarchyElementInternal <HierarchyTypeParameter> (parent); hierarchyTypeParameter.Init(typeParameter); AddTypeParameterGenericConstraints(hierarchyTypeParameter, typeParameter); parent.AddMember(hierarchyTypeParameter); }
protected virtual void AddMethodMembers(HierarchyMethod method, ApiMethod apiMethod) { Helpers.ForEachNotNull(apiMethod.ChildElements, (ApiElement e) => { switch (e) { case ApiMethodParameter parameter: Process(method, parameter); break; case ApiTypeParameter typeParameter: Process(method, typeParameter); break; case ApiException exception: Process(method, exception); break; default: Logger.Warning($"Unexpected member type for {apiMethod.GetType ()}: '{e.GetType ().FullName}'"); break; } }); }
public abstract void AddMember(HierarchyMethod method);