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