@@ -11,17 +11,19 @@ internal class Compilation : CachedEntity<object>
11
11
{
12
12
internal readonly ConcurrentDictionary < string , int > messageCounts = new ( ) ;
13
13
14
- private readonly ( string Cwd , string [ ] Args ) settings ;
14
+ private readonly string cwd ;
15
+ private readonly string [ ] args ;
15
16
private readonly int hashCode ;
16
17
17
18
#nullable disable warnings
18
19
private Compilation ( Context cx ) : base ( cx , null )
19
20
{
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 ++ )
23
25
{
24
- hashCode = HashCode . Combine ( hashCode , settings . Args [ i ] . GetHashCode ( ) ) ;
26
+ hashCode = HashCode . Combine ( hashCode , args [ i ] . GetHashCode ( ) ) ;
25
27
}
26
28
}
27
29
#nullable restore warnings
@@ -30,14 +32,14 @@ public override void Populate(TextWriter trapFile)
30
32
{
31
33
var assembly = Assembly . CreateOutputAssembly ( Context ) ;
32
34
33
- trapFile . compilations ( this , FileUtils . ConvertToUnix ( settings . Cwd ) ) ;
35
+ trapFile . compilations ( this , FileUtils . ConvertToUnix ( cwd ) ) ;
34
36
trapFile . compilation_assembly ( this , assembly ) ;
35
37
36
38
// Arguments
37
39
var expandedIndex = 0 ;
38
- for ( var i = 0 ; i < settings . Args . Length ; i ++ )
40
+ for ( var i = 0 ; i < args . Length ; i ++ )
39
41
{
40
- var arg = settings . Args [ i ] ;
42
+ var arg = args [ i ] ;
41
43
trapFile . compilation_args ( this , i , arg ) ;
42
44
43
45
if ( CommandLineExtensions . IsFileArgument ( arg ) )
0 commit comments