25 references to Unmanaged
Microsoft.CodeAnalysis (4)
PEWriter\Members.cs (3)
61Unmanaged = SignatureCallingConvention.Unmanaged, 88| SignatureCallingConvention.Unmanaged; 106=> convention <= SignatureCallingConvention.VarArgs || convention == SignatureCallingConvention.Unmanaged;
Symbols\IMethodSymbol.cs (1)
224/// and the <see cref="CallingConvention"/> is <see cref="SignatureCallingConvention.Unmanaged"/>. If this is not a function pointer signature or the calling convention is
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.FunctionPointerTypeSymbolKey.cs (2)
23if (callingConvention == SignatureCallingConvention.Unmanaged) 40if (callingConvention == SignatureCallingConvention.Unmanaged)
Microsoft.CodeAnalysis.CSharp (3)
Compilation\CSharpCompilation.cs (1)
4082if (callingConvention != SignatureCallingConvention.Unmanaged && !callingConventionTypes.IsDefaultOrEmpty)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (2)
594if (symbol.CallingConvention != SignatureCallingConvention.Unmanaged || !conventionTypes.IsEmpty) 613case SignatureCallingConvention.Unmanaged:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
145System.Reflection.Metadata.SignatureCallingConvention.Unmanaged =>
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (8)
Symbols\FunctionPointerTypeSymbolTests.cs (8)
1536Assert.Throws<ArgumentNullException>("callingConventionTypes[0]", () => comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, callingConvention: SignatureCallingConvention.Unmanaged, ImmutableArray.Create((INamedTypeSymbol)null!))); 1545Assert.Throws<ArgumentException>(() => comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, callingConvention: SignatureCallingConvention.Unmanaged, callingConventionTypes: ImmutableArray.Create(@string)!)); 1632[InlineData("", SignatureCallingConvention.Unmanaged)] 1653var ptr = comp.CreateFunctionPointerTypeSymbol(@string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, SignatureCallingConvention.Unmanaged, ImmutableArray.Create(cdeclType, stdcallType)!); 1655ptr = comp.CreateFunctionPointerTypeSymbol(@string, returnRefKind: RefKind.RefReadOnly, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, SignatureCallingConvention.Unmanaged, ImmutableArray.Create(cdeclType, stdcallType)!); 1658ptr = comp.CreateFunctionPointerTypeSymbol(@string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, SignatureCallingConvention.Unmanaged, ImmutableArray.Create(cdeclType)!); 1660Assert.Equal(SignatureCallingConvention.Unmanaged, ptr.Signature.CallingConvention); 1970callingConvention: SignatureCallingConvention.Unmanaged,
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
145System.Reflection.Metadata.SignatureCallingConvention.Unmanaged =>
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.FunctionPointerTypeSymbolKey.cs (2)
23if (callingConvention == SignatureCallingConvention.Unmanaged) 40if (callingConvention == SignatureCallingConvention.Unmanaged)
System.Reflection.Metadata (2)
System\Reflection\Metadata\Signatures\SignatureHeader.cs (2)
44&& callingConventionOrKind != (int)SignatureCallingConvention.Unmanaged) 60|| callingConventionOrKind == (int)SignatureCallingConvention.Unmanaged)
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\Types\RoFunctionPointerType.cs (1)
66case SignatureCallingConvention.Unmanaged:
System\Reflection\TypeLoading\Types\RoModifiedFunctionPointerType.cs (1)
70case Metadata.SignatureCallingConvention.Unmanaged: