コード例 #1
0
 /// <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;
 }
コード例 #2
0
 public Context(Extractor e, Compilation c, TrapWriter trapWriter, IExtractionScope scope, bool addAssemblyTrapPrefix)
 {
     Extractor   = e;
     Compilation = c;
     this.scope  = scope;
     TrapWriter  = trapWriter;
     ShouldAddAssemblyTrapPrefix = addAssemblyTrapPrefix;
 }
コード例 #3
0
 public Context CreateContext(Compilation c, TrapWriter trapWriter, IExtractionScope scope)
 {
     return(new Context(this, c, trapWriter, scope));
 }
コード例 #4
0
ファイル: Context.cs プロジェクト: raulgarciamsft/ql
 public Context(Extraction.Extractor e, Compilation c, TrapWriter trapWriter, IExtractionScope scope, bool addAssemblyTrapPrefix)
     : base(e, trapWriter, addAssemblyTrapPrefix)
 {
     Compilation = c;
     this.scope  = scope;
 }
コード例 #5
0
 public Context CreateContext(Compilation c, TrapWriter trapWriter, IExtractionScope scope, bool addAssemblyTrapPrefix)
 {
     return(new Context(this, c, trapWriter, scope, addAssemblyTrapPrefix));
 }