mirror of
https://github.com/github/codeql.git
synced 2026-04-24 16:25:15 +02:00
Implement encodeReturn
This commit is contained in:
@@ -380,7 +380,14 @@ module Steps = Private::Steps<FlowSummaryStepInput>;
|
||||
* `arg` will be printed in square brackets (`[]`) after the result, unless
|
||||
* `arg` is the empty string.
|
||||
*/
|
||||
string encodeReturn(ReturnKind rk, string arg) { none() }
|
||||
string encodeReturn(ReturnKind rk, string arg) {
|
||||
result = "ReturnValue" and
|
||||
(
|
||||
rk = MkNormalReturnKind() and arg = ""
|
||||
or
|
||||
rk = MkExceptionalReturnKind() and arg = "exception"
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the textual representation of without-content `c` used in MaD.
|
||||
|
||||
Reference in New Issue
Block a user