-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Shared: Add a shared SuccessorType implementation #20300
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
base: main
Are you sure you want to change the base?
Conversation
@@ -817,7 +816,7 @@ | |||
this = TNestedCompletion(_, TBreakCompletion(), _) | |||
} | |||
|
|||
override BreakSuccessor getAMatchingSuccessorType() { any() } | |||
override JumpSuccessor getAMatchingSuccessorType() { any() } |
Check warning
Code scanning / CodeQL
Override with unmentioned parameter Warning
result
@@ -836,7 +835,7 @@ | |||
this = TNestedCompletion(_, TContinueCompletion(), _) | |||
} | |||
|
|||
override ContinueSuccessor getAMatchingSuccessorType() { any() } | |||
override JumpSuccessor getAMatchingSuccessorType() { any() } |
Check warning
Code scanning / CodeQL
Override with unmentioned parameter Warning
result
@@ -859,7 +858,7 @@ | |||
/** Gets the label of the `goto` completion. */ | |||
string getLabel() { result = label } | |||
|
|||
override GotoSuccessor getAMatchingSuccessorType() { result.getLabel() = label } | |||
override JumpSuccessor getAMatchingSuccessorType() { any() } |
Check warning
Code scanning / CodeQL
Override with unmentioned parameter Warning
result
@@ -882,7 +881,7 @@ | |||
/** Gets the type of the exception being thrown. */ | |||
ExceptionClass getExceptionClass() { result = ec } | |||
|
|||
override ExceptionSuccessor getAMatchingSuccessorType() { result.getExceptionClass() = ec } | |||
override ExceptionSuccessor getAMatchingSuccessorType() { any() } |
Check warning
Code scanning / CodeQL
Override with unmentioned parameter Warning
result
@@ -359,7 +358,7 @@ | |||
this = TNestedCompletion(_, TBreakCompletion(), _) | |||
} | |||
|
|||
override BreakSuccessor getAMatchingSuccessorType() { any() } | |||
override JumpSuccessor getAMatchingSuccessorType() { any() } |
Check warning
Code scanning / CodeQL
Override with unmentioned parameter Warning
result
@@ -395,7 +394,7 @@ | |||
this = TNestedCompletion(_, TRedoCompletion(), _) | |||
} | |||
|
|||
override RedoSuccessor getAMatchingSuccessorType() { any() } | |||
override JumpSuccessor getAMatchingSuccessorType() { any() } |
Check warning
Code scanning / CodeQL
Override with unmentioned parameter Warning
result
@@ -413,7 +412,7 @@ | |||
this = TNestedCompletion(_, TRetryCompletion(), _) | |||
} | |||
|
|||
override RetrySuccessor getAMatchingSuccessorType() { any() } | |||
override JumpSuccessor getAMatchingSuccessorType() { any() } |
Check warning
Code scanning / CodeQL
Override with unmentioned parameter Warning
result
@@ -431,7 +430,7 @@ | |||
this = TNestedCompletion(_, TRaiseCompletion(), _) | |||
} | |||
|
|||
override RaiseSuccessor getAMatchingSuccessorType() { any() } | |||
override ExceptionSuccessor getAMatchingSuccessorType() { any() } |
Check warning
Code scanning / CodeQL
Override with unmentioned parameter Warning
result
Mostly toString changes, and a slight change to splitting in C#.
ce85279
to
75ea5f2
Compare
@@ -338,7 +337,7 @@ | |||
|
|||
BreakCompletion() { this = TBreakCompletion(target) } | |||
|
|||
override BreakSuccessor getAMatchingSuccessorType() { any() } | |||
override JumpSuccessor getAMatchingSuccessorType() { any() } |
Check warning
Code scanning / CodeQL
Override with unmentioned parameter Warning
result
@@ -354,7 +353,7 @@ | |||
|
|||
ContinueCompletion() { this = TContinueCompletion(target) } | |||
|
|||
override ContinueSuccessor getAMatchingSuccessorType() { any() } | |||
override JumpSuccessor getAMatchingSuccessorType() { any() } |
Check warning
Code scanning / CodeQL
Override with unmentioned parameter Warning
result
@@ -468,7 +467,7 @@ | |||
|
|||
FallthroughCompletion() { this = TFallthroughCompletion(dest) } | |||
|
|||
override FallthroughSuccessor getAMatchingSuccessorType() { any() } | |||
override DirectSuccessor getAMatchingSuccessorType() { any() } |
Check warning
Code scanning / CodeQL
Override with unmentioned parameter Warning
No description provided.