Skip to content
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

C# 13: Partial properties and indexers. #18533

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

michaelnebel
Copy link
Contributor

@michaelnebel michaelnebel commented Jan 20, 2025

In this PR we make support for partial property and indexer definitions (as described here).

As opposed to partial methods it is worth noting that partial indexers and properties always both have a declaring declaration and an implementation declaration. Thus we need to disregard the declaration get and set (as they are not callables).

@github-actions github-actions bot added the C# label Jan 20, 2025
@michaelnebel michaelnebel force-pushed the csharp/partialmembers branch from e5b0aba to 0c0fe93 Compare January 20, 2025 15:04
@michaelnebel michaelnebel force-pushed the csharp/partialmembers branch 3 times, most recently from fff7385 to 9341e91 Compare January 21, 2025 14:39
@michaelnebel michaelnebel force-pushed the csharp/partialmembers branch from 9341e91 to ca0f73b Compare January 21, 2025 15:10
@michaelnebel michaelnebel force-pushed the csharp/partialmembers branch from ca0f73b to ec17a0e Compare January 22, 2025 08:57
@michaelnebel
Copy link
Contributor Author

DCA looks good.

@michaelnebel michaelnebel marked this pull request as ready for review January 22, 2025 14:17
@Copilot Copilot bot review requested due to automatic review settings January 22, 2025 14:17
@michaelnebel michaelnebel requested a review from a team as a code owner January 22, 2025 14:17
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 10 out of 25 changed files in this pull request and generated 2 comments.

Files not reviewed (15)
  • csharp/ql/test/library-tests/dataflow/fields/FieldFlow.expected: Language not supported
  • csharp/ql/test/library-tests/dataflow/indexers/IndexerFlow.expected: Language not supported
  • csharp/ql/test/library-tests/dataflow/indexers/IndexerFlow.ql: Language not supported
  • csharp/ql/test/library-tests/dispatch/CallGraph.expected: Language not supported
  • csharp/ql/test/library-tests/dispatch/GetADynamicTarget.expected: Language not supported
  • csharp/ql/test/library-tests/dispatch/viableCallable.expected: Language not supported
  • csharp/ql/test/library-tests/partial/MethodIsPartial.expected: Language not supported
  • csharp/ql/test/library-tests/partial/Partial1.expected: Language not supported
  • csharp/ql/test/library-tests/partial/Partial2.expected: Language not supported
  • csharp/ql/test/library-tests/partial/PartialAccessors.expected: Language not supported
  • csharp/ql/test/library-tests/partial/PartialAccessors.ql: Language not supported
  • csharp/ql/test/library-tests/partial/PartialIndexers.expected: Language not supported
  • csharp/extractor/Semmle.Extraction.CSharp/Entities/Indexer.cs: Evaluated as low risk
  • csharp/extractor/Semmle.Extraction.CSharp/Entities/Accessor.cs: Evaluated as low risk
  • csharp/ql/test/library-tests/dataflow/fields/D.cs: Evaluated as low risk

Tip: If you use Visual Studio Code, you can request a review from Copilot before you push from the "Source Control" tab. Learn more

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant