95 references to SupportsRuntimeCapability
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocDiagnosticAnalyzer.cs (1)
32
return compilation.
SupportsRuntimeCapability
(RuntimeCapability.InlineArrayTypes);
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
1077
compilation.
SupportsRuntimeCapability
(RuntimeCapability.InlineArrayTypes) &&
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (15)
RefStructInterfacesTests.cs (4)
2445
Assert.True(comp.
SupportsRuntimeCapability
(RuntimeCapability.ByRefLikeGenerics));
4387
Assert.True(comp.
SupportsRuntimeCapability
(RuntimeCapability.ByRefLikeGenerics));
4400
Assert.False(comp.
SupportsRuntimeCapability
(RuntimeCapability.ByRefLikeGenerics));
4407
Assert.False(comp.
SupportsRuntimeCapability
(RuntimeCapability.ByRefLikeGenerics));
Semantics\InlineArrayTests.cs (4)
118
Assert.True(comp.
SupportsRuntimeCapability
(RuntimeCapability.InlineArrayTypes));
121
Assert.True(vbComp.
SupportsRuntimeCapability
(RuntimeCapability.InlineArrayTypes));
18196
Assert.False(comp.
SupportsRuntimeCapability
(RuntimeCapability.InlineArrayTypes));
18199
Assert.False(vbComp.
SupportsRuntimeCapability
(RuntimeCapability.InlineArrayTypes));
Semantics\RecordTests.cs (7)
10723
Assert.Equal(RuntimeUtilities.IsCoreClrRuntime, comp.
SupportsRuntimeCapability
(RuntimeCapability.CovariantReturnsOfClasses));
15807
Assert.Equal(RuntimeUtilities.IsCoreClrRuntime, comp.
SupportsRuntimeCapability
(RuntimeCapability.CovariantReturnsOfClasses));
23617
Assert.Equal(RuntimeUtilities.IsCoreClrRuntime, comp.
SupportsRuntimeCapability
(RuntimeCapability.CovariantReturnsOfClasses));
25670
Assert.Equal(RuntimeUtilities.IsCoreClrRuntime, c.
SupportsRuntimeCapability
(RuntimeCapability.CovariantReturnsOfClasses));
25981
Assert.Equal(RuntimeUtilities.IsCoreClrRuntime, comp.
SupportsRuntimeCapability
(RuntimeCapability.CovariantReturnsOfClasses));
30166
Assert.False(compA.
SupportsRuntimeCapability
(RuntimeCapability.CovariantReturnsOfClasses));
30196
Assert.True(compB.
SupportsRuntimeCapability
(RuntimeCapability.CovariantReturnsOfClasses));
Microsoft.CodeAnalysis.CSharp.Features (3)
Diagnostics\Analyzers\CSharpPreferFrameworkTypeDiagnosticAnalyzer.cs (1)
35
semanticModel.Compilation.
SupportsRuntimeCapability
(RuntimeCapability.NumericIntPtr);
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocDiagnosticAnalyzer.cs (1)
32
return compilation.
SupportsRuntimeCapability
(RuntimeCapability.InlineArrayTypes);
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
1077
compilation.
SupportsRuntimeCapability
(RuntimeCapability.InlineArrayTypes) &&
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (14)
Semantics\InheritanceBindingTests.cs (2)
4990
Assert.Equal(RuntimeUtilities.IsCoreClrRuntime, comp.
SupportsRuntimeCapability
(RuntimeCapability.CovariantReturnsOfClasses));
5051
Assert.Equal(RuntimeUtilities.IsCoreClrRuntime, compilation.
SupportsRuntimeCapability
(RuntimeCapability.CovariantReturnsOfClasses));
Semantics\InitOnlyMemberTests.cs (2)
2286
Assert.True(comp.
SupportsRuntimeCapability
(RuntimeCapability.DefaultImplementationsOfInterfaces));
2379
Assert.True(comp.
SupportsRuntimeCapability
(RuntimeCapability.DefaultImplementationsOfInterfaces));
Semantics\NativeIntegerTests.cs (6)
72
Assert.False(comp.
SupportsRuntimeCapability
(RuntimeCapability.NumericIntPtr));
87
Assert.False(comp.
SupportsRuntimeCapability
(RuntimeCapability.NumericIntPtr));
177
Assert.False(comp.
SupportsRuntimeCapability
(RuntimeCapability.NumericIntPtr));
183
Assert.False(comp.
SupportsRuntimeCapability
(RuntimeCapability.NumericIntPtr));
190
Assert.False(comp.
SupportsRuntimeCapability
(RuntimeCapability.NumericIntPtr));
196
Assert.False(comp.
SupportsRuntimeCapability
(RuntimeCapability.NumericIntPtr));
Semantics\RefFieldTests.cs (4)
2176
Assert.False(comp.
SupportsRuntimeCapability
(RuntimeCapability.ByRefFields));
2184
Assert.True(comp.
SupportsRuntimeCapability
(RuntimeCapability.ByRefFields));
2192
Assert.False(comp.
SupportsRuntimeCapability
(RuntimeCapability.ByRefFields));
2197
Assert.True(comp.
SupportsRuntimeCapability
(RuntimeCapability.ByRefFields));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (36)
Symbols\CompilationCreationTests.cs (24)
3009
Assert.False(compilation.
SupportsRuntimeCapability
(RuntimeCapability.ByRefFields));
3010
Assert.False(compilation.
SupportsRuntimeCapability
(RuntimeCapability.CovariantReturnsOfClasses));
3011
Assert.False(compilation.
SupportsRuntimeCapability
(RuntimeCapability.NumericIntPtr));
3012
Assert.False(compilation.
SupportsRuntimeCapability
(RuntimeCapability.UnmanagedSignatureCallingConvention));
3013
Assert.False(compilation.
SupportsRuntimeCapability
(RuntimeCapability.VirtualStaticsInInterfaces));
3014
Assert.False(compilation.
SupportsRuntimeCapability
(RuntimeCapability.DefaultImplementationsOfInterfaces));
3017
Assert.False(compilation.
SupportsRuntimeCapability
(RuntimeCapability.ByRefFields));
3018
Assert.True(compilation.
SupportsRuntimeCapability
(RuntimeCapability.CovariantReturnsOfClasses));
3019
Assert.False(compilation.
SupportsRuntimeCapability
(RuntimeCapability.NumericIntPtr));
3020
Assert.True(compilation.
SupportsRuntimeCapability
(RuntimeCapability.UnmanagedSignatureCallingConvention));
3021
Assert.False(compilation.
SupportsRuntimeCapability
(RuntimeCapability.VirtualStaticsInInterfaces));
3022
Assert.True(compilation.
SupportsRuntimeCapability
(RuntimeCapability.DefaultImplementationsOfInterfaces));
3025
Assert.False(compilation.
SupportsRuntimeCapability
(RuntimeCapability.ByRefFields));
3026
Assert.True(compilation.
SupportsRuntimeCapability
(RuntimeCapability.CovariantReturnsOfClasses));
3027
Assert.False(compilation.
SupportsRuntimeCapability
(RuntimeCapability.NumericIntPtr));
3028
Assert.True(compilation.
SupportsRuntimeCapability
(RuntimeCapability.UnmanagedSignatureCallingConvention));
3029
Assert.True(compilation.
SupportsRuntimeCapability
(RuntimeCapability.VirtualStaticsInInterfaces));
3030
Assert.True(compilation.
SupportsRuntimeCapability
(RuntimeCapability.DefaultImplementationsOfInterfaces));
3033
Assert.True(compilation.
SupportsRuntimeCapability
(RuntimeCapability.ByRefFields));
3034
Assert.True(compilation.
SupportsRuntimeCapability
(RuntimeCapability.CovariantReturnsOfClasses));
3035
Assert.True(compilation.
SupportsRuntimeCapability
(RuntimeCapability.NumericIntPtr));
3036
Assert.True(compilation.
SupportsRuntimeCapability
(RuntimeCapability.UnmanagedSignatureCallingConvention));
3037
Assert.True(compilation.
SupportsRuntimeCapability
(RuntimeCapability.VirtualStaticsInInterfaces));
3038
Assert.True(compilation.
SupportsRuntimeCapability
(RuntimeCapability.DefaultImplementationsOfInterfaces));
Symbols\StaticAbstractMembersInInterfacesTests.cs (12)
5304
Assert.True(compilation1.
SupportsRuntimeCapability
(RuntimeCapability.DefaultImplementationsOfInterfaces));
5305
Assert.True(compilation1.
SupportsRuntimeCapability
(RuntimeCapability.VirtualStaticsInInterfaces));
5340
Assert.True(compilation1.
SupportsRuntimeCapability
(RuntimeCapability.DefaultImplementationsOfInterfaces));
5341
Assert.True(compilation1.
SupportsRuntimeCapability
(RuntimeCapability.VirtualStaticsInInterfaces));
5382
Assert.False(compilation1.
SupportsRuntimeCapability
(RuntimeCapability.DefaultImplementationsOfInterfaces));
5383
Assert.False(compilation1.
SupportsRuntimeCapability
(RuntimeCapability.VirtualStaticsInInterfaces));
5397
Assert.True(compilation2.
SupportsRuntimeCapability
(RuntimeCapability.DefaultImplementationsOfInterfaces));
5398
Assert.False(compilation2.
SupportsRuntimeCapability
(RuntimeCapability.VirtualStaticsInInterfaces));
5423
Assert.False(compilation1.
SupportsRuntimeCapability
(RuntimeCapability.DefaultImplementationsOfInterfaces));
5424
Assert.False(compilation1.
SupportsRuntimeCapability
(RuntimeCapability.VirtualStaticsInInterfaces));
5438
Assert.True(compilation2.
SupportsRuntimeCapability
(RuntimeCapability.DefaultImplementationsOfInterfaces));
5439
Assert.False(compilation2.
SupportsRuntimeCapability
(RuntimeCapability.VirtualStaticsInInterfaces));
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
65
semanticModel.Compilation.
SupportsRuntimeCapability
(RuntimeCapability.NumericIntPtr))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (24)
SymbolsTests\CompilationCreationTests.vb (24)
2238
Assert.False(compilation.
SupportsRuntimeCapability
(RuntimeCapability.ByRefFields))
2239
Assert.False(compilation.
SupportsRuntimeCapability
(RuntimeCapability.CovariantReturnsOfClasses))
2240
Assert.False(compilation.
SupportsRuntimeCapability
(RuntimeCapability.NumericIntPtr))
2241
Assert.False(compilation.
SupportsRuntimeCapability
(RuntimeCapability.UnmanagedSignatureCallingConvention))
2242
Assert.False(compilation.
SupportsRuntimeCapability
(RuntimeCapability.VirtualStaticsInInterfaces))
2243
Assert.False(compilation.
SupportsRuntimeCapability
(RuntimeCapability.DefaultImplementationsOfInterfaces))
2246
Assert.False(compilation.
SupportsRuntimeCapability
(RuntimeCapability.ByRefFields))
2247
Assert.True(compilation.
SupportsRuntimeCapability
(RuntimeCapability.CovariantReturnsOfClasses))
2248
Assert.False(compilation.
SupportsRuntimeCapability
(RuntimeCapability.NumericIntPtr))
2249
Assert.True(compilation.
SupportsRuntimeCapability
(RuntimeCapability.UnmanagedSignatureCallingConvention))
2250
Assert.False(compilation.
SupportsRuntimeCapability
(RuntimeCapability.VirtualStaticsInInterfaces))
2251
Assert.True(compilation.
SupportsRuntimeCapability
(RuntimeCapability.DefaultImplementationsOfInterfaces))
2254
Assert.False(compilation.
SupportsRuntimeCapability
(RuntimeCapability.ByRefFields))
2255
Assert.True(compilation.
SupportsRuntimeCapability
(RuntimeCapability.CovariantReturnsOfClasses))
2256
Assert.False(compilation.
SupportsRuntimeCapability
(RuntimeCapability.NumericIntPtr))
2257
Assert.True(compilation.
SupportsRuntimeCapability
(RuntimeCapability.UnmanagedSignatureCallingConvention))
2258
Assert.True(compilation.
SupportsRuntimeCapability
(RuntimeCapability.VirtualStaticsInInterfaces))
2259
Assert.True(compilation.
SupportsRuntimeCapability
(RuntimeCapability.DefaultImplementationsOfInterfaces))
2262
Assert.True(compilation.
SupportsRuntimeCapability
(RuntimeCapability.ByRefFields))
2263
Assert.True(compilation.
SupportsRuntimeCapability
(RuntimeCapability.CovariantReturnsOfClasses))
2264
Assert.True(compilation.
SupportsRuntimeCapability
(RuntimeCapability.NumericIntPtr))
2265
Assert.True(compilation.
SupportsRuntimeCapability
(RuntimeCapability.UnmanagedSignatureCallingConvention))
2266
Assert.True(compilation.
SupportsRuntimeCapability
(RuntimeCapability.VirtualStaticsInInterfaces))
2267
Assert.True(compilation.
SupportsRuntimeCapability
(RuntimeCapability.DefaultImplementationsOfInterfaces))