Skip to content

Commit 5eab1f8

Browse files
Add documentation to ExternalApiUsage fields
1 parent 2525ae8 commit 5eab1f8

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

extensions/ql-vscode/src/data-extensions-editor/external-api-usage.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,24 @@ export type ExternalApiUsage = {
1111
*/
1212
library: string;
1313
/**
14-
* Contains the full method signature, e.g. `org.sql2o.Connection#createQuery(String)`
14+
* A unique signature that can be used to identify this external API usage.
15+
*
16+
* The signature contains the package name, type name, method name, and method parameters
17+
* in the form "packageName.typeName#methodName(methodParameters)".
18+
* e.g. `org.sql2o.Connection#createQuery(String)`
1519
*/
1620
signature: string;
1721
packageName: string;
1822
typeName: string;
1923
methodName: string;
24+
/**
25+
* The method parameters, including enclosing parentheses, e.g. `(String, String)`
26+
*/
2027
methodParameters: string;
28+
/**
29+
* Is this method already supported by CodeQL standard libraries.
30+
* If so, there is no need for the user to model it themselves.
31+
*/
2132
supported: boolean;
2233
usages: Call[];
2334
};

0 commit comments

Comments
 (0)