Skip to content

Conversation

@hvitved
Copy link
Contributor

@hvitved hvitved commented Feb 5, 2025

Adds the following internal aliases in the data flow library to make the code less verbose

class Call = DataFlowCall;

class Callable = DataFlowCallable;

class Type = DataFlowType;

class Expr = DataFlowExpr;

@hvitved hvitved added the no-change-note-required This PR does not need a change note label Feb 5, 2025
default predicate reducedViableImplInCallContextCand(
DataFlowCall call, DataFlowCallable c, DataFlowCall ctx
) {
default predicate reducedViableImplInCallContextCand(Call call, Callable c, Call ctx) {

Check warning

Code scanning / CodeQL

Candidate predicate not marked as `nomagic` Warning

Candidate predicate to
reducedViableImplInCallContext
is not marked as nomagic.
Candidate predicate to
reducedViableImplInCallContext
is not marked as nomagic.
* returned to.
*/
default predicate reducedViableImplInReturnCand(DataFlowCallable c, DataFlowCall call) {
default predicate reducedViableImplInReturnCand(Callable c, Call call) {

Check warning

Code scanning / CodeQL

Candidate predicate not marked as `nomagic` Warning

Candidate predicate to
reducedViableImplInReturn
is not marked as nomagic.
Candidate predicate to
reducedViableImplInReturn
is not marked as nomagic.
@github-actions github-actions bot added the C# label Feb 5, 2025
@hvitved hvitved marked this pull request as ready for review February 5, 2025 12:14
@hvitved hvitved requested a review from a team as a code owner February 5, 2025 12:14
@hvitved hvitved requested a review from aschackmull February 5, 2025 12:14
Copy link
Contributor

@aschackmull aschackmull left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@michaelnebel michaelnebel left a comment

Choose a reason for hiding this comment

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

LGTM!

@hvitved hvitved merged commit 9319b18 into github:main Feb 5, 2025
37 checks passed
@hvitved hvitved deleted the dataflow/aliases branch February 5, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C# DataFlow Library no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants