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)
4803Assert.Equal(512, parsedArgs.EmitOptions.FileAlignment) 4805Assert.Equal(1024, parsedArgs.EmitOptions.FileAlignment) 4807Assert.Equal(2048, parsedArgs.EmitOptions.FileAlignment) 4809Assert.Equal(4096, parsedArgs.EmitOptions.FileAlignment) 4811Assert.Equal(8192, parsedArgs.EmitOptions.FileAlignment) 4815Assert.Equal(512, parsedArgs.EmitOptions.FileAlignment) 4817Assert.Equal(1024, parsedArgs.EmitOptions.FileAlignment) 4819Assert.Equal(2048, parsedArgs.EmitOptions.FileAlignment) 4821Assert.Equal(4096, parsedArgs.EmitOptions.FileAlignment) 4823Assert.Equal(8192, parsedArgs.EmitOptions.FileAlignment) 4827Assert.Equal(512, parsedArgs.EmitOptions.FileAlignment) 4829Assert.Equal(1024, parsedArgs.EmitOptions.FileAlignment) 4831Assert.Equal(2048, parsedArgs.EmitOptions.FileAlignment) 4833Assert.Equal(4096, parsedArgs.EmitOptions.FileAlignment) 4835Assert.Equal(8192, parsedArgs.EmitOptions.FileAlignment) 4839Assert.Equal(0, parsedArgs.EmitOptions.FileAlignment)