@@ -11,17 +11,19 @@ internal class Compilation : CachedEntity<object>
1111 {
1212 internal readonly ConcurrentDictionary < string , int > messageCounts = new ( ) ;
1313
14- private readonly ( string Cwd , string [ ] Args ) settings ;
14+ private readonly string cwd ;
15+ private readonly string [ ] args ;
1516 private readonly int hashCode ;
1617
1718#nullable disable warnings
1819 private Compilation ( Context cx ) : base ( cx , null )
1920 {
20- settings = ( cx . Extractor . Cwd , cx . Extractor . Args ) ;
21- hashCode = settings . Cwd . GetHashCode ( ) ;
22- for ( var i = 0 ; i < settings . Args . Length ; i ++ )
21+ cwd = cx . Extractor . Cwd ;
22+ args = cx . Extractor . Args ;
23+ hashCode = cwd . GetHashCode ( ) ;
24+ for ( var i = 0 ; i < args . Length ; i ++ )
2325 {
24- hashCode = HashCode . Combine ( hashCode , settings . Args [ i ] . GetHashCode ( ) ) ;
26+ hashCode = HashCode . Combine ( hashCode , args [ i ] . GetHashCode ( ) ) ;
2527 }
2628 }
2729#nullable restore warnings
@@ -30,14 +32,14 @@ public override void Populate(TextWriter trapFile)
3032 {
3133 var assembly = Assembly . CreateOutputAssembly ( Context ) ;
3234
33- trapFile . compilations ( this , FileUtils . ConvertToUnix ( settings . Cwd ) ) ;
35+ trapFile . compilations ( this , FileUtils . ConvertToUnix ( cwd ) ) ;
3436 trapFile . compilation_assembly ( this , assembly ) ;
3537
3638 // Arguments
3739 var expandedIndex = 0 ;
38- for ( var i = 0 ; i < settings . Args . Length ; i ++ )
40+ for ( var i = 0 ; i < args . Length ; i ++ )
3941 {
40- var arg = settings . Args [ i ] ;
42+ var arg = args [ i ] ;
4143 trapFile . compilation_args ( this , i , arg ) ;
4244
4345 if ( CommandLineExtensions . IsFileArgument ( arg ) )
0 commit comments