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