25 references to CreateFunctionPointerTypeSymbol
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (24)
Symbols\FunctionPointerTypeSymbolTests.cs (24)
1532
Assert.Throws<ArgumentNullException>("returnType", () => comp.
CreateFunctionPointerTypeSymbol
(returnType: null!, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty));
1533
Assert.Throws<ArgumentNullException>("parameterTypes", () => comp.
CreateFunctionPointerTypeSymbol
(returnType: @string, returnRefKind: RefKind.None, parameterTypes: default, parameterRefKinds: ImmutableArray<RefKind>.Empty));
1534
Assert.Throws<ArgumentNullException>("parameterTypes[0]", () => comp.
CreateFunctionPointerTypeSymbol
(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray.Create((ITypeSymbol?)null)!, parameterRefKinds: ImmutableArray.Create(RefKind.None)));
1535
Assert.Throws<ArgumentNullException>("parameterRefKinds", () => comp.
CreateFunctionPointerTypeSymbol
(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: default));
1536
Assert.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!)));
1537
Assert.Throws<ArgumentException>(() => comp.
CreateFunctionPointerTypeSymbol
(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray.Create(RefKind.None)));
1538
Assert.Throws<ArgumentException>(() => comp.
CreateFunctionPointerTypeSymbol
(returnType: @string, returnRefKind: RefKind.Out, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty));
1539
Assert.Throws<ArgumentOutOfRangeException>(() => comp.
CreateFunctionPointerTypeSymbol
(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, callingConvention: (SignatureCallingConvention)10));
1540
Assert.Throws<ArgumentException>(() => comp.
CreateFunctionPointerTypeSymbol
(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, callingConvention: SignatureCallingConvention.Default, callingConventionTypes: ImmutableArray.Create(cdeclType)!));
1541
Assert.Throws<ArgumentException>(() => comp.
CreateFunctionPointerTypeSymbol
(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, callingConvention: SignatureCallingConvention.StdCall, callingConventionTypes: ImmutableArray.Create(cdeclType)!));
1542
Assert.Throws<ArgumentException>(() => comp.
CreateFunctionPointerTypeSymbol
(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, callingConvention: SignatureCallingConvention.FastCall, callingConventionTypes: ImmutableArray.Create(cdeclType)!));
1543
Assert.Throws<ArgumentException>(() => comp.
CreateFunctionPointerTypeSymbol
(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, callingConvention: SignatureCallingConvention.CDecl, callingConventionTypes: ImmutableArray.Create(cdeclType)!));
1544
Assert.Throws<ArgumentException>(() => comp.
CreateFunctionPointerTypeSymbol
(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, callingConvention: SignatureCallingConvention.ThisCall, callingConventionTypes: ImmutableArray.Create(cdeclType)!));
1545
Assert.Throws<ArgumentException>(() => comp.
CreateFunctionPointerTypeSymbol
(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, callingConvention: SignatureCallingConvention.Unmanaged, callingConventionTypes: ImmutableArray.Create(@string)!));
1553
var ptr = comp.
CreateFunctionPointerTypeSymbol
(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, callingConvention: SignatureCallingConvention.VarArgs);
1567
var ptr = comp.
CreateFunctionPointerTypeSymbol
(
1582
var ptr = comp.
CreateFunctionPointerTypeSymbol
(
1599
var ptr = comp.
CreateFunctionPointerTypeSymbol
(
1617
var ptr = comp.
CreateFunctionPointerTypeSymbol
(
1638
var ptr = comp.
CreateFunctionPointerTypeSymbol
(@string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, convention);
1640
ptr = comp.
CreateFunctionPointerTypeSymbol
(@string, returnRefKind: RefKind.RefReadOnly, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, convention);
1653
var ptr = comp.
CreateFunctionPointerTypeSymbol
(@string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, SignatureCallingConvention.Unmanaged, ImmutableArray.Create(cdeclType, stdcallType)!);
1655
ptr = comp.
CreateFunctionPointerTypeSymbol
(@string, returnRefKind: RefKind.RefReadOnly, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, SignatureCallingConvention.Unmanaged, ImmutableArray.Create(cdeclType, stdcallType)!);
1658
ptr = comp.
CreateFunctionPointerTypeSymbol
(@string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, SignatureCallingConvention.Unmanaged, ImmutableArray.Create(cdeclType)!);
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Compilation\CompilationAPITests.vb (1)
1472
Assert.Throws(Of NotSupportedException)(Function() compilation.
CreateFunctionPointerTypeSymbol
(Nothing, Nothing, Nothing, Nothing, Nothing, Nothing))