public ManagedReflectionWriter(TextWriter output, ApiFilter filter, ApiNamer namer) : base(filter) { XmlWriterSettings settings = new XmlWriterSettings(); settings.Indent = true; writer = XmlWriter.Create(output, settings); this.namer = namer; }
//===================================================================== /// <summary> /// Constructor /// </summary> /// <param name="resolver">The assembly resolver to use</param> /// <param name="filter">The API filter to use</param> protected ApiVisitor(AssemblyResolver resolver, ApiFilter filter) { accessoryAssemblies = new List<AssemblyNode>(); assemblies = new List<AssemblyNode>(); catalog = new Dictionary<string, Namespace>(); this.resolver = resolver; this.filter = filter; }
//===================================================================== /// <summary> /// Constructor /// </summary> /// <param name="sourceCodeBasePath">An optional base path to the source code. If set, source code /// context information will be included in the reflection data when possible.</param> /// <param name="warnOnMissingContext">True to report missing type source contexts as warnings rather /// than as informational messages.</param> /// <param name="resolver">The assembly resolver to use</param> /// <param name="filter">The API filter to use</param> protected ApiVisitor(string sourceCodeBasePath, bool warnOnMissingContext, AssemblyResolver resolver, ApiFilter filter) { accessoryAssemblies = new List <AssemblyNode>(); assemblies = new List <AssemblyNode>(); catalog = new Dictionary <string, Namespace>(); if (!String.IsNullOrWhiteSpace(sourceCodeBasePath)) { if (sourceCodeBasePath[sourceCodeBasePath.Length - 1] != '\\') { sourceCodeBasePath += "\\"; } this.SourceCodeBasePath = sourceCodeBasePath; this.WarnOnMissingContext = warnOnMissingContext; } this.resolver = resolver; this.filter = filter; }
public ManagedReflectionWriter(TextWriter output, ApiFilter filter) : this(output, filter, new OrcasNamer()) { }
protected ApiVisitor(ApiFilter filter) { this.filter = filter; }
//===================================================================== /// <summary> /// Constructor /// </summary> /// <param name="output">The text writer to which the output is written</param> /// <param name="namer">The API namer to use</param> /// <param name="resolver">The assembly resolver to use</param> /// <param name="filter">The API filter to use</param> public ManagedReflectionWriter(TextWriter output, ApiNamer namer, AssemblyResolver resolver, ApiFilter filter) : base(resolver, filter) { assemblyNames = new HashSet<string>(); descendantIndex = new Dictionary<TypeNode, List<TypeNode>>(); implementorIndex = new Dictionary<Interface, List<TypeNode>>(); parsedNamespaces = new List<Namespace>(); parsedTypes = new List<TypeNode>(); parsedMembers = new List<Member>(); startTagCallbacks = new Dictionary<string, List<MRefBuilderCallback>>(); endTagCallbacks = new Dictionary<string, List<MRefBuilderCallback>>(); XmlWriterSettings settings = new XmlWriterSettings(); settings.Indent = true; writer = XmlWriter.Create(output, settings); this.namer = namer; }