@@ -17,7 +17,7 @@ namespace Semmle.Extraction.CSharp
1717 /// </summary>
1818 public sealed class Analyser : IDisposable
1919 {
20- private IExtractor extractor ;
20+ private Extraction . Extractor extractor ;
2121 private CSharpCompilation compilation ;
2222 private Layout layout ;
2323 private bool init ;
@@ -230,7 +230,7 @@ private void DoAnalyseCompilation()
230230 var projectLayout = layout . LookupProjectOrDefault ( transformedAssemblyPath ) ;
231231 var trapWriter = projectLayout . CreateTrapWriter ( Logger , transformedAssemblyPath , options . TrapCompression , discardDuplicates : false ) ;
232232 compilationTrapFile = trapWriter ; // Dispose later
233- var cx = extractor . CreateContext ( compilation . Clone ( ) , trapWriter , new AssemblyScope ( assembly , assemblyPath ) , AddAssemblyTrapPrefix ) ;
233+ var cx = new Context ( extractor , compilation . Clone ( ) , trapWriter , new AssemblyScope ( assembly , assemblyPath ) , AddAssemblyTrapPrefix ) ;
234234
235235 compilationEntity = Entities . Compilation . Create ( cx ) ;
236236 }
@@ -285,7 +285,7 @@ private void DoAnalyseReferenceAssembly(PortableExecutableReference r)
285285
286286 if ( c . GetAssemblyOrModuleSymbol ( r ) is IAssemblySymbol assembly )
287287 {
288- var cx = extractor . CreateContext ( c , trapWriter , new AssemblyScope ( assembly , assemblyPath ) , AddAssemblyTrapPrefix ) ;
288+ var cx = new Context ( extractor , c , trapWriter , new AssemblyScope ( assembly , assemblyPath ) , AddAssemblyTrapPrefix ) ;
289289
290290 foreach ( var module in assembly . Modules )
291291 {
@@ -371,7 +371,7 @@ private void DoExtractTree(SyntaxTree tree)
371371
372372 if ( ! upToDate )
373373 {
374- var cx = extractor . CreateContext ( compilation . Clone ( ) , trapWriter , new SourceScope ( tree ) , AddAssemblyTrapPrefix ) ;
374+ var cx = new Context ( extractor , compilation . Clone ( ) , trapWriter , new SourceScope ( tree ) , AddAssemblyTrapPrefix ) ;
375375 // Ensure that the file itself is populated in case the source file is totally empty
376376 var root = tree . GetRoot ( ) ;
377377 Extraction . Entities . File . Create ( cx , root . SyntaxTree . FilePath ) ;
0 commit comments