Apply suggestions from code review

Co-authored-by: Tom Hvitved <hvitved@github.com>
This commit is contained in:
Simon Friis Vindum
2025-02-04 15:10:32 +01:00
committed by GitHub
parent b0a3cdc68c
commit ece5557f3d

View File

@@ -890,7 +890,7 @@ final class FunctionCallArgumentContent extends Content, TFunctionCallArgumentCo
}
/**
* A content for the index of an argument to at function call.
* A content for the return value of function call.
*
* Used by the model generator to create flow summaries for higher-order
* functions.
@@ -1661,7 +1661,7 @@ private module Cached {
} or
TFunctionCallReturnContent() or
TFunctionCallArgumentContent(int pos) {
pos in [0 .. any(CallExpr c).getArgList().getNumberOfArgs()]
pos in [0 .. any(CallExpr c).getArgList().getNumberOfArgs() - 1]
} or
TCapturedVariableContent(VariableCapture::CapturedVariable v) or
TReferenceContent()