/// <summary> /// Create a new context, one per source file/assembly. /// </summary> /// <param name="e">The extractor.</param> /// <param name="c">The Roslyn compilation.</param> /// <param name="extractedEntity">Name of the source/dll file.</param> /// <param name="scope">Defines which symbols are included in the trap file (e.g. AssemblyScope or SourceScope)</param> public Context(IExtractor e, Compilation c, TrapWriter trapWriter, IExtractionScope scope) { Extractor = e; Compilation = c; Scope = scope; TrapWriter = trapWriter; }
public Context(Extractor e, Compilation c, TrapWriter trapWriter, IExtractionScope scope, bool addAssemblyTrapPrefix) { Extractor = e; Compilation = c; this.scope = scope; TrapWriter = trapWriter; ShouldAddAssemblyTrapPrefix = addAssemblyTrapPrefix; }
public Context CreateContext(Compilation c, TrapWriter trapWriter, IExtractionScope scope) { return(new Context(this, c, trapWriter, scope)); }
public Context(Extraction.Extractor e, Compilation c, TrapWriter trapWriter, IExtractionScope scope, bool addAssemblyTrapPrefix) : base(e, trapWriter, addAssemblyTrapPrefix) { Compilation = c; this.scope = scope; }
public Context CreateContext(Compilation c, TrapWriter trapWriter, IExtractionScope scope, bool addAssemblyTrapPrefix) { return(new Context(this, c, trapWriter, scope, addAssemblyTrapPrefix)); }