2 writes to FileAlignment
Microsoft.CodeAnalysis (2)
Emit\EmitOptions.cs (2)
240
FileAlignment
= fileAlignment;
463
return new EmitOptions(this) {
FileAlignment
= value };
17 references to FileAlignment
Microsoft.CodeAnalysis (12)
Compilation\Compilation.cs (3)
2222
if (emitOptions.
FileAlignment
== 0 || !CompilationOptions.IsValidFileAlignment(emitOptions.
FileAlignment
))
2230
fileAlignment = (ushort)emitOptions.
FileAlignment
;
Compilation\DeterministicKeyBuilder.cs (1)
411
writer.Write("fileAlignment", options.
FileAlignment
);
Emit\EmitOptions.cs (8)
258
other.
FileAlignment
,
290
FileAlignment
== other.
FileAlignment
&&
309
Hash.Combine(
FileAlignment
,
359
if (
FileAlignment
!= 0 && !IsValidFileAlignment(
FileAlignment
))
361
diagnostics.Add(messageProvider.CreateDiagnostic(messageProvider.ERR_InvalidFileAlignment, Location.None,
FileAlignment
));
458
if (
FileAlignment
== value)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (3)
CommandLineTests.cs (3)
4638
Assert.Equal(0x200, parsedArgs.EmitOptions.
FileAlignment
);
4642
Assert.Equal(512, parsedArgs.EmitOptions.
FileAlignment
);
4656
Assert.Equal(8192, parsedArgs.EmitOptions.
FileAlignment
);
Microsoft.CodeAnalysis.UnitTests (2)
Emit\EmitOptionsTests.cs (2)
54
TestProperty((old, value) => old.WithFileAlignment(value), opt => opt.
FileAlignment
, 2048);
83
nameof(EmitOptions.
FileAlignment
),