3 writes to Platform
Microsoft.CodeAnalysis (1)
Compilation\CompilationOptions.cs (1)
306this.Platform = platform;
Microsoft.CodeAnalysis.CSharp (1)
CSharpCompilationOptions.cs (1)
430return new CSharpCompilationOptions(this) { Platform = platform };
Microsoft.CodeAnalysis.VisualBasic (1)
VisualBasicCompilationOptions.vb (1)
792Return New VisualBasicCompilationOptions(Me) With {.Platform = value}
44 references to Platform
Microsoft.CodeAnalysis (6)
Compilation\Compilation.cs (1)
2204Platform platform = compilationOptions.Platform;
Compilation\CompilationOptions.cs (3)
639this.Platform == other.Platform && 686Hash.Combine((int)this.Platform,
Compilation\DeterministicKeyBuilder.cs (1)
451writer.Write("platform", options.Platform);
PEWriter\MetadataWriter.PortablePdb.cs (1)
923var platform = module.CommonCompilation.Options.Platform;
Microsoft.CodeAnalysis.CSharp (7)
CSharpCompilationOptions.cs (5)
244platform: other.Platform, 425if (this.Platform == platform) 680if (!Platform.IsValid()) 682builder.Add(Diagnostic.Create(MessageProvider.Instance, (int)ErrorCode.ERR_BadPlatformType, Platform.ToString())); 715if (Platform == Platform.AnyCpu32BitPreferred && OutputKind.IsValid() && !(OutputKind == OutputKind.ConsoleApplication || OutputKind == OutputKind.WindowsApplication || OutputKind == OutputKind.WindowsRuntimeApplication))
Symbols\Source\SourceModuleSymbol.cs (2)
89switch (DeclaringCompilation.Options.Platform) 109return DeclaringCompilation.Options.Platform == Platform.X86;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\CSharpCompilationOptionsTests.cs (2)
83TestHiddenProperty((old, value) => old.WithPlatform(value), opt => opt.Platform, Platform.Itanium); 121TestProperty((old, value) => old.WithPlatform(value), opt => opt.Platform, Platform.Itanium);
Microsoft.CodeAnalysis.VisualBasic (8)
Symbols\Source\SourceModuleSymbol.vb (2)
106Select Case DeclaringCompilation.Options.Platform 123Return DeclaringCompilation.Options.Platform = Platform.X86
VisualBasicCompilationOptions.vb (6)
318platform:=other.Platform, 788If value = Me.Platform Then 1034If Not Platform.IsValid() Then 1035builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(Platform), Platform.ToString())) 1066If Platform = Platform.AnyCpu32BitPreferred AndAlso OutputKind.IsValid() AndAlso 1068builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_LibAnycpu32bitPreferredConflict, NameOf(Platform), Platform.ToString()))
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (9)
CommandLineTests.vb (9)
4742Assert.Equal(CodeAnalysis.Platform.X86, parsedArgs.CompilationOptions.Platform) 4746Assert.Equal(CodeAnalysis.Platform.X64, parsedArgs.CompilationOptions.Platform) 4750Assert.Equal(CodeAnalysis.Platform.Itanium, parsedArgs.CompilationOptions.Platform) 4754Assert.Equal(CodeAnalysis.Platform.AnyCpu, parsedArgs.CompilationOptions.Platform) 4758Assert.Equal(CodeAnalysis.Platform.AnyCpu32BitPreferred, parsedArgs.CompilationOptions.Platform) 4762Assert.Equal(CodeAnalysis.Platform.AnyCpu32BitPreferred, parsedArgs.CompilationOptions.Platform) 4766Assert.Equal(CodeAnalysis.Platform.Arm, parsedArgs.CompilationOptions.Platform) 4771Assert.Equal(CodeAnalysis.Platform.AnyCpu, parsedArgs.CompilationOptions.Platform) 4788Assert.Equal(CodeAnalysis.Platform.AnyCpu, parsedArgs.CompilationOptions.Platform)
Microsoft.CodeAnalysis.Workspaces (1)
Serialization\AbstractOptionsSerializationService.cs (1)
47writer.WriteInt32((int)options.Platform);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (10)
VisualStudioMSBuildWorkspaceTests.cs (10)
492Assert.Equal(Platform.AnyCpu, compilation.Options.Platform); 507Assert.Equal(Platform.AnyCpu, compilation.Options.Platform); 521Assert.Equal(Platform.AnyCpu32BitPreferred, compilation.Options.Platform); 536Assert.Equal(Platform.AnyCpu, compilation.Options.Platform); 551Assert.Equal(Platform.AnyCpu, compilation.Options.Platform); 616Assert.Equal(Platform.AnyCpu, compilation.Options.Platform); 631Assert.Equal(Platform.AnyCpu, compilation.Options.Platform); 645Assert.Equal(Platform.AnyCpu32BitPreferred, compilation.Options.Platform); 660Assert.Equal(Platform.AnyCpu, compilation.Options.Platform); 675Assert.Equal(Platform.AnyCpu, compilation.Options.Platform);
Microsoft.VisualStudio.LanguageServices (1)
Interactive\VsResetInteractive.cs (1)
161platform = (projectOpt != null) ? GetInteractiveHostPlatform(targetFrameworkMoniker, projectOpt.CompilationOptions.Platform) : null;