2 writes to FileAlignment
Microsoft.CodeAnalysis (2)
Emit\EmitOptions.cs (2)
238
FileAlignment
= fileAlignment;
461
return new EmitOptions(this) {
FileAlignment
= value };
30 references to FileAlignment
Microsoft.CodeAnalysis (12)
Compilation\Compilation.cs (3)
2221
if (emitOptions.
FileAlignment
== 0 || !CompilationOptions.IsValidFileAlignment(emitOptions.
FileAlignment
))
2229
fileAlignment = (ushort)emitOptions.
FileAlignment
;
Compilation\DeterministicKeyBuilder.cs (1)
410
writer.Write("fileAlignment", options.
FileAlignment
);
Emit\EmitOptions.cs (8)
256
other.
FileAlignment
,
288
FileAlignment
== other.
FileAlignment
&&
307
Hash.Combine(
FileAlignment
,
357
if (
FileAlignment
!= 0 && !IsValidFileAlignment(
FileAlignment
))
359
diagnostics.Add(messageProvider.CreateDiagnostic(messageProvider.ERR_InvalidFileAlignment, Location.None,
FileAlignment
));
456
if (
FileAlignment
== value)
Microsoft.CodeAnalysis.UnitTests (2)
Emit\EmitOptionsTests.cs (2)
54
TestProperty((old, value) => old.WithFileAlignment(value), opt => opt.
FileAlignment
, 2048);
83
nameof(EmitOptions.
FileAlignment
),
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (16)
CommandLineTests.vb (16)
4803
Assert.Equal(512, parsedArgs.EmitOptions.
FileAlignment
)
4805
Assert.Equal(1024, parsedArgs.EmitOptions.
FileAlignment
)
4807
Assert.Equal(2048, parsedArgs.EmitOptions.
FileAlignment
)
4809
Assert.Equal(4096, parsedArgs.EmitOptions.
FileAlignment
)
4811
Assert.Equal(8192, parsedArgs.EmitOptions.
FileAlignment
)
4815
Assert.Equal(512, parsedArgs.EmitOptions.
FileAlignment
)
4817
Assert.Equal(1024, parsedArgs.EmitOptions.
FileAlignment
)
4819
Assert.Equal(2048, parsedArgs.EmitOptions.
FileAlignment
)
4821
Assert.Equal(4096, parsedArgs.EmitOptions.
FileAlignment
)
4823
Assert.Equal(8192, parsedArgs.EmitOptions.
FileAlignment
)
4827
Assert.Equal(512, parsedArgs.EmitOptions.
FileAlignment
)
4829
Assert.Equal(1024, parsedArgs.EmitOptions.
FileAlignment
)
4831
Assert.Equal(2048, parsedArgs.EmitOptions.
FileAlignment
)
4833
Assert.Equal(4096, parsedArgs.EmitOptions.
FileAlignment
)
4835
Assert.Equal(8192, parsedArgs.EmitOptions.
FileAlignment
)
4839
Assert.Equal(0, parsedArgs.EmitOptions.
FileAlignment
)