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)
4802
Assert.Equal(512, parsedArgs.EmitOptions.
FileAlignment
)
4804
Assert.Equal(1024, parsedArgs.EmitOptions.
FileAlignment
)
4806
Assert.Equal(2048, parsedArgs.EmitOptions.
FileAlignment
)
4808
Assert.Equal(4096, parsedArgs.EmitOptions.
FileAlignment
)
4810
Assert.Equal(8192, parsedArgs.EmitOptions.
FileAlignment
)
4814
Assert.Equal(512, parsedArgs.EmitOptions.
FileAlignment
)
4816
Assert.Equal(1024, parsedArgs.EmitOptions.
FileAlignment
)
4818
Assert.Equal(2048, parsedArgs.EmitOptions.
FileAlignment
)
4820
Assert.Equal(4096, parsedArgs.EmitOptions.
FileAlignment
)
4822
Assert.Equal(8192, parsedArgs.EmitOptions.
FileAlignment
)
4826
Assert.Equal(512, parsedArgs.EmitOptions.
FileAlignment
)
4828
Assert.Equal(1024, parsedArgs.EmitOptions.
FileAlignment
)
4830
Assert.Equal(2048, parsedArgs.EmitOptions.
FileAlignment
)
4832
Assert.Equal(4096, parsedArgs.EmitOptions.
FileAlignment
)
4834
Assert.Equal(8192, parsedArgs.EmitOptions.
FileAlignment
)
4838
Assert.Equal(0, parsedArgs.EmitOptions.
FileAlignment
)