Skip to content

Commit 558f51b

Browse files
committed
Add comment to parsePredictedClassifications method
1 parent 2e29d0c commit 558f51b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

extensions/ql-vscode/src/data-extensions-editor/auto-model.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ export function createAutoModelRequest(
6868
return request;
6969
}
7070

71+
/**
72+
* For now, we have a simplified model that only models methods as sinks. It does not model methods as neutral,
73+
* so we aren't actually able to correctly determine that a method is neutral; it could still be a source or summary.
74+
* However, to keep this method simple and give output to the user, we will model any method for which none of its
75+
* arguments are modeled as sinks as neutral.
76+
*
77+
* If there are multiple arguments which are modeled as sinks, we will only model the first one.
78+
*/
7179
export function parsePredictedClassifications(
7280
predicted: Method[],
7381
): Record<string, ModeledMethod> {

0 commit comments

Comments
 (0)