33 references to Unmanaged
Microsoft.CodeAnalysis.CSharp (15)
Binder\Semantics\Conversions\ConversionsBase.cs (1)
3388
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)
672
Debug.Assert(expectedConvention.UnmanagedCallingConventionTypes.IsEmpty || expectedConvention.CallKind == Cci.CallingConvention.
Unmanaged
);
720
actualCallKind = Cci.CallingConvention.
Unmanaged
;
749
actualCallKind = Cci.CallingConvention.
Unmanaged
;
767
if (expectedConvention.CallKind.IsCallingConvention(Cci.CallingConvention.
Unmanaged
))
Compilation\CSharpCompilation.cs (1)
4144
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
);
643
if (!CallingConvention.IsCallingConvention(CallingConvention.
Unmanaged
))
672
if (modifiersToSearch.IsEmpty || CallingConvention != CallingConvention.
Unmanaged
)
736
if (CallingConvention.IsCallingConvention(CallingConvention.
Unmanaged
)
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (1)
317
Cci.CallingConvention.
Unmanaged
=> "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);
7673
CallingConvention.
Unmanaged
, TypeWithAnnotations.Create(@string), refCustomModifiers: default,
7677
CallingConvention.
Unmanaged
, TypeWithAnnotations.Create(@string), refCustomModifiers: default,
7682
CallingConvention.
Unmanaged
, TypeWithAnnotations.Create(@string, customModifiers: ImmutableArray.Create(testMod)), refCustomModifiers: default,
7686
CallingConvention.
Unmanaged
, TypeWithAnnotations.Create(@string), refCustomModifiers: ImmutableArray.Create(testMod),
7758
CallingConvention.
Unmanaged
, TypeWithAnnotations.Create(@string), refCustomModifiers: default,
7762
CallingConvention.
Unmanaged
, TypeWithAnnotations.Create(@string), refCustomModifiers: default,
7767
CallingConvention.
Unmanaged
, TypeWithAnnotations.Create(@string, customModifiers: ImmutableArray.Create(testMod)), refCustomModifiers: default,
7771
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);
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
)