32 references to Unmanaged
Microsoft.CodeAnalysis.CSharp (14)
Binder\Semantics\Conversions\ConversionsBase.cs (1)
3161if (sourceSig.CallingConvention == Cci.CallingConvention.Unmanaged &&
Binder\Semantics\OverloadResolution\CallingConventionInfo.cs (1)
17Debug.Assert(unmanagedCallingConventionTypes.IsEmpty || callKind == Cci.CallingConvention.Unmanaged);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (4)
454Debug.Assert(expectedConvention.UnmanagedCallingConventionTypes.IsEmpty || expectedConvention.CallKind == Cci.CallingConvention.Unmanaged); 502actualCallKind = Cci.CallingConvention.Unmanaged; 531actualCallKind = Cci.CallingConvention.Unmanaged; 549if (expectedConvention.CallKind.IsCallingConvention(Cci.CallingConvention.Unmanaged))
Compilation\CSharpCompilation.cs (1)
3782var conventionModifiers = internalCallingConvention == CallingConvention.Unmanaged && !callingConventionTypes.IsDefaultOrEmpty
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (7)
146return CallingConvention.Unmanaged; 182return CallingConvention.Unmanaged; 197return CallingConvention.Unmanaged; 280Debug.Assert(callingConvention == CallingConvention.Unmanaged); 640if (!CallingConvention.IsCallingConvention(CallingConvention.Unmanaged)) 669if (modifiersToSearch.IsEmpty || CallingConvention != CallingConvention.Unmanaged) 733if (CallingConvention.IsCallingConvention(CallingConvention.Unmanaged)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (10)
CodeGen\CodeGenFunctionPointersTests.cs (10)
84[InlineData("unmanaged", CallingConvention.Unmanaged)] 124Assert.Equal(CallingConvention.Unmanaged, ((FunctionPointerTypeSymbol)funcPtr).Signature.CallingConvention); 7660CallingConvention.Unmanaged, TypeWithAnnotations.Create(@string), refCustomModifiers: default, 7664CallingConvention.Unmanaged, TypeWithAnnotations.Create(@string), refCustomModifiers: default, 7669CallingConvention.Unmanaged, TypeWithAnnotations.Create(@string, customModifiers: ImmutableArray.Create(testMod)), refCustomModifiers: default, 7673CallingConvention.Unmanaged, TypeWithAnnotations.Create(@string), refCustomModifiers: ImmutableArray.Create(testMod), 7745CallingConvention.Unmanaged, TypeWithAnnotations.Create(@string), refCustomModifiers: default, 7749CallingConvention.Unmanaged, TypeWithAnnotations.Create(@string), refCustomModifiers: default, 7754CallingConvention.Unmanaged, TypeWithAnnotations.Create(@string, customModifiers: ImmutableArray.Create(testMod)), refCustomModifiers: default, 7758CallingConvention.Unmanaged, TypeWithAnnotations.Create(@string), refCustomModifiers: ImmutableArray.Create(testMod),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (8)
Symbols\FunctionPointerTypeSymbolTests.cs (8)
229[InlineData("unmanaged", CallingConvention.Unmanaged)] 250if (expectedConvention == CallingConvention.Unmanaged) 327Assert.Equal(CallingConvention.Unmanaged, m1PointerType.Signature.CallingConvention); 331Assert.Equal(CallingConvention.Unmanaged, m2PointerType.Signature.CallingConvention); 335Assert.Equal(CallingConvention.Unmanaged, m3PointerType.Signature.CallingConvention); 2045(FunctionPointerTypeSymbol NoRef, FunctionPointerTypeSymbol ByRef) createTypeSymbol(ImmutableArray<CustomModifier> customModifiers, CallingConvention callingConvention = CallingConvention.Unmanaged) 2112(FunctionPointerTypeSymbol NoRef, FunctionPointerTypeSymbol ByRef) createTypeSymbol(ImmutableArray<CustomModifier> customModifiers, CallingConvention callingConvention = CallingConvention.Unmanaged) 2171(FunctionPointerTypeSymbol NoRef, FunctionPointerTypeSymbol ByRef) createTypeSymbol(ImmutableArray<CustomModifier> typeCustomModifiers, ImmutableArray<CustomModifier> refCustomModifiers, CallingConvention callingConvention = CallingConvention.Unmanaged)