2 writes to FileAlignment
Microsoft.CodeAnalysis (2)
Emit\EmitOptions.cs (2)
238FileAlignment = fileAlignment; 461return new EmitOptions(this) { FileAlignment = value };
30 references to FileAlignment
Microsoft.CodeAnalysis (12)
Compilation\Compilation.cs (3)
2221if (emitOptions.FileAlignment == 0 || !CompilationOptions.IsValidFileAlignment(emitOptions.FileAlignment)) 2229fileAlignment = (ushort)emitOptions.FileAlignment;
Compilation\DeterministicKeyBuilder.cs (1)
410writer.Write("fileAlignment", options.FileAlignment);
Emit\EmitOptions.cs (8)
256other.FileAlignment, 288FileAlignment == other.FileAlignment && 307Hash.Combine(FileAlignment, 357if (FileAlignment != 0 && !IsValidFileAlignment(FileAlignment)) 359diagnostics.Add(messageProvider.CreateDiagnostic(messageProvider.ERR_InvalidFileAlignment, Location.None, FileAlignment)); 456if (FileAlignment == value)
Microsoft.CodeAnalysis.UnitTests (2)
Emit\EmitOptionsTests.cs (2)
54TestProperty((old, value) => old.WithFileAlignment(value), opt => opt.FileAlignment, 2048); 83nameof(EmitOptions.FileAlignment),
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (16)
CommandLineTests.vb (16)
4802Assert.Equal(512, parsedArgs.EmitOptions.FileAlignment) 4804Assert.Equal(1024, parsedArgs.EmitOptions.FileAlignment) 4806Assert.Equal(2048, parsedArgs.EmitOptions.FileAlignment) 4808Assert.Equal(4096, parsedArgs.EmitOptions.FileAlignment) 4810Assert.Equal(8192, parsedArgs.EmitOptions.FileAlignment) 4814Assert.Equal(512, parsedArgs.EmitOptions.FileAlignment) 4816Assert.Equal(1024, parsedArgs.EmitOptions.FileAlignment) 4818Assert.Equal(2048, parsedArgs.EmitOptions.FileAlignment) 4820Assert.Equal(4096, parsedArgs.EmitOptions.FileAlignment) 4822Assert.Equal(8192, parsedArgs.EmitOptions.FileAlignment) 4826Assert.Equal(512, parsedArgs.EmitOptions.FileAlignment) 4828Assert.Equal(1024, parsedArgs.EmitOptions.FileAlignment) 4830Assert.Equal(2048, parsedArgs.EmitOptions.FileAlignment) 4832Assert.Equal(4096, parsedArgs.EmitOptions.FileAlignment) 4834Assert.Equal(8192, parsedArgs.EmitOptions.FileAlignment) 4838Assert.Equal(0, parsedArgs.EmitOptions.FileAlignment)