-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Public API support for function pointer types #44436
Add Public API support for function pointer types #44436
Conversation
cf96a95
to
b9d7cad
Compare
@AlekseyTs @dotnet/roslyn-compiler for review. /cc @jasonmalinowski @CyrusNajmabadi, I've added the |
src/Compilers/CSharp/Portable/Operations/CSharpOperationFactory.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Portable/Operations/CSharpOperationFactory.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Portable/Operations/CSharpOperationFactory.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Portable/Operations/CSharpOperationFactory.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Portable/Operations/CSharpOperationFactory.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Portable/Operations/CSharpOperationFactory.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Portable/Operations/CSharpOperationFactory.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Portable/Operations/CSharpOperationFactory.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Portable/Operations/CSharpOperationFactory.cs
Outdated
Show resolved
Hide resolved
Done with review pass (iteration 8) #Closed |
@AlekseyTs addressed feedback. In reply to: 634421183 [](ancestors = 634421183) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (iteration 9), assuming CI is passing
src/Compilers/Core/Portable/Collections/ImmutableArrayExtensions.cs
Outdated
Show resolved
Hide resolved
src/Compilers/Core/Portable/Symbols/IFunctionPointerTypeSymbol.cs
Outdated
Show resolved
Hide resolved
src/Compilers/Core/Portable/Collections/ImmutableArrayExtensions.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Portable/Compilation/CSharpSemanticModel.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Portable/Compilation/CSharpSemanticModel.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Portable/Compilation/CSharpSemanticModel.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Portable/Compilation/CSharpSemanticModel.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Portable/Operations/CSharpOperationFactory.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Portable/Operations/CSharpOperationFactory.cs
Outdated
Show resolved
Hide resolved
Consider moving these ahead of Refers to: src/Compilers/CSharp/Portable/Operations/CSharpOperationFactory.cs:960 in 1edbf72. [](commit_id = 1edbf72, deletion_comment = False) |
src/Compilers/CSharp/Portable/Symbols/FunctionPointers/FunctionPointerMethodSymbol.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Test/IOperation/IOperation/FunctionPointerOperations.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Test/IOperation/IOperation/FunctionPointerOperations.cs
Outdated
Show resolved
Hide resolved
src/Compilers/VisualBasic/Portable/Compilation/VisualBasicCompilation.vb
Show resolved
Hide resolved
src/Compilers/Core/CodeAnalysisTest/Collections/ImmutableArrayExtensionsTests.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Auto-approval
/// If returnType is <see langword="null"/>, or if parameterTypes or parameterRefKinds are default, | ||
/// or if any of the types in parameterTypes are null.</exception> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The expectation is the return type is System.Void for void-returning? I ask only because System.Void is...funky and it's use is sometimes unclear. 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep.
Implements and documents the public API access points for function pointer types.