33 references to Unmanaged
Microsoft.CodeAnalysis.CSharp (15)
Binder\Semantics\Conversions\ConversionsBase.cs (1)
3388if (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)
672Debug.Assert(expectedConvention.UnmanagedCallingConventionTypes.IsEmpty || expectedConvention.CallKind == Cci.CallingConvention.Unmanaged); 720actualCallKind = Cci.CallingConvention.Unmanaged; 749actualCallKind = Cci.CallingConvention.Unmanaged; 767if (expectedConvention.CallKind.IsCallingConvention(Cci.CallingConvention.Unmanaged))
Compilation\CSharpCompilation.cs (1)
4144var 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); 643if (!CallingConvention.IsCallingConvention(CallingConvention.Unmanaged)) 672if (modifiersToSearch.IsEmpty || CallingConvention != CallingConvention.Unmanaged) 736if (CallingConvention.IsCallingConvention(CallingConvention.Unmanaged)
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (1)
317Cci.CallingConvention.Unmanaged => "unmanaged ",
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (10)
CodeGen\CodeGenFunctionPointersTests.cs (10)
84[InlineData("unmanaged", CallingConvention.Unmanaged)] 124Assert.Equal(CallingConvention.Unmanaged, ((FunctionPointerTypeSymbol)funcPtr).Signature.CallingConvention); 7673CallingConvention.Unmanaged, TypeWithAnnotations.Create(@string), refCustomModifiers: default, 7677CallingConvention.Unmanaged, TypeWithAnnotations.Create(@string), refCustomModifiers: default, 7682CallingConvention.Unmanaged, TypeWithAnnotations.Create(@string, customModifiers: ImmutableArray.Create(testMod)), refCustomModifiers: default, 7686CallingConvention.Unmanaged, TypeWithAnnotations.Create(@string), refCustomModifiers: ImmutableArray.Create(testMod), 7758CallingConvention.Unmanaged, TypeWithAnnotations.Create(@string), refCustomModifiers: default, 7762CallingConvention.Unmanaged, TypeWithAnnotations.Create(@string), refCustomModifiers: default, 7767CallingConvention.Unmanaged, TypeWithAnnotations.Create(@string, customModifiers: ImmutableArray.Create(testMod)), refCustomModifiers: default, 7771CallingConvention.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); 2044(FunctionPointerTypeSymbol NoRef, FunctionPointerTypeSymbol ByRef) createTypeSymbol(ImmutableArray<CustomModifier> customModifiers, CallingConvention callingConvention = CallingConvention.Unmanaged) 2111(FunctionPointerTypeSymbol NoRef, FunctionPointerTypeSymbol ByRef) createTypeSymbol(ImmutableArray<CustomModifier> customModifiers, CallingConvention callingConvention = CallingConvention.Unmanaged) 2170(FunctionPointerTypeSymbol NoRef, FunctionPointerTypeSymbol ByRef) createTypeSymbol(ImmutableArray<CustomModifier> typeCustomModifiers, ImmutableArray<CustomModifier> refCustomModifiers, CallingConvention callingConvention = CallingConvention.Unmanaged)