89 references to Platform
Microsoft.CodeAnalysis (27)
Compilation\Compilation.cs (10)
2225
Platform
platform = compilationOptions.Platform;
2230
platform =
Platform
.AnyCpu;
2299
case
Platform
.Arm64:
2303
case
Platform
.Arm:
2307
case
Platform
.X64:
2311
case
Platform
.Itanium:
2315
case
Platform
.X86:
2319
case
Platform
.AnyCpu:
2320
case
Platform
.AnyCpu32BitPreferred:
2330
corFlags: GetCorHeaderFlags(machine, HasStrongName, prefers32Bit: platform ==
Platform
.AnyCpu32BitPreferred),
Compilation\CompilationOptions.cs (4)
132
public
Platform
Platform { get; protected set; }
280
Platform
platform,
438
public CompilationOptions WithPlatform(
Platform
platform)
531
protected abstract CompilationOptions CommonWithPlatform(
Platform
platform);
Compilation\Platform.cs (9)
47
internal static bool IsValid(this
Platform
value)
49
return value >=
Platform
.AnyCpu && value <=
Platform
.Arm64;
52
internal static bool Requires64Bit(this
Platform
value)
54
return value ==
Platform
.X64 || value ==
Platform
.Itanium || value ==
Platform
.Arm64;
57
internal static bool Requires32Bit(this
Platform
value)
59
return value ==
Platform
.X86;
Compilation\SubsystemVersion.cs (2)
154
internal static SubsystemVersion Default(OutputKind outputKind,
Platform
platform)
156
if (platform ==
Platform
.Arm)
Emit\EmitOptions.cs (1)
55
/// If the value is 0 the file alignment is determined based upon the value of <see cref="
Platform
"/>.
PEWriter\MetadataWriter.PortablePdb.cs (1)
923
var
platform = module.CommonCompilation.Options.Platform;
Microsoft.CodeAnalysis.CSharp (27)
CommandLine\CSharpCommandLineParser.cs (11)
97
Platform
platform =
Platform
.AnyCpu;
1833
private static
Platform
ParsePlatform(string value, IList<Diagnostic> diagnostics)
1838
return
Platform
.X86;
1840
return
Platform
.X64;
1842
return
Platform
.Itanium;
1844
return
Platform
.AnyCpu;
1846
return
Platform
.AnyCpu32BitPreferred;
1848
return
Platform
.Arm;
1850
return
Platform
.Arm64;
1855
return
Platform
.AnyCpu;
CSharpCompilationOptions.cs (11)
71
Platform
platform =
Platform
.AnyCpu,
121
Platform
platform,
166
Platform
platform,
208
Platform
platform,
453
public new CSharpCompilationOptions WithPlatform(
Platform
platform)
659
protected override CompilationOptions CommonWithPlatform(
Platform
platform) => WithPlatform(platform);
745
if (Platform ==
Platform
.AnyCpu32BitPreferred && OutputKind.IsValid() && !(OutputKind == OutputKind.ConsoleApplication || OutputKind == OutputKind.WindowsApplication || OutputKind == OutputKind.WindowsRuntimeApplication))
862
Platform
platform,
901
Platform
platform,
945
Platform
platform,
Symbols\Source\SourceModuleSymbol.cs (5)
92
case
Platform
.Arm:
94
case
Platform
.X64:
96
case
Platform
.Arm64:
98
case
Platform
.Itanium:
110
return DeclaringCompilation.Options.Platform ==
Platform
.X86;
Microsoft.CodeAnalysis.CSharp.Scripting (1)
CSharpScriptCompiler.cs (1)
64
platform:
Platform
.AnyCpu,
Microsoft.CodeAnalysis.Rebuild (4)
CompilationFactory.cs (4)
208
protected static
Platform
GetPlatform(string? platform)
210
?
Platform
.AnyCpu
211
: (
Platform
)Enum.Parse(typeof(
Platform
), platform);
Microsoft.CodeAnalysis.VisualBasic (27)
CommandLine\VisualBasicCommandLineParser.vb (11)
143
Dim platform As
Platform
=
Platform
.AnyCpu
2163
Private Shared Function ParsePlatform(name As String, value As String, errors As List(Of Diagnostic)) As
Platform
2169
Return
Platform
.X86
2171
Return
Platform
.X64
2173
Return
Platform
.Itanium
2175
Return
Platform
.AnyCpu
2177
Return
Platform
.AnyCpu32BitPreferred
2179
Return
Platform
.Arm
2181
Return
Platform
.Arm64
2187
Return
Platform
.AnyCpu
Symbols\Source\SourceModuleSymbol.vb (5)
107
Case
Platform
.Arm64
109
Case
Platform
.Arm
111
Case
Platform
.X64
113
Case
Platform
.Itanium
123
Return DeclaringCompilation.Options.Platform =
Platform
.X86
VisualBasicCompilationOptions.vb (11)
87
Optional platform As
Platform
=
Platform
.AnyCpu,
164
platform As
Platform
,
233
platform As
Platform
,
787
Public Shadows Function WithPlatform(value As
Platform
) As VisualBasicCompilationOptions
987
Protected Overrides Function CommonWithPlatform(platform As
Platform
) As CompilationOptions
1066
If Platform =
Platform
.AnyCpu32BitPreferred AndAlso OutputKind.IsValid() AndAlso
1163
platform As
Platform
,
1228
platform As
Platform
,
1294
Optional platform As
Platform
=
Platform
.AnyCpu,
Microsoft.CodeAnalysis.Workspaces (3)
Serialization\AbstractOptionsSerializationService.cs (3)
89
Platform
platform,
124
var
platform = (
Platform
)reader.ReadInt32();