Skip to content

Commit 91ae61b

Browse files
author
Stephan Brandauer
committed
more documentation
1 parent 46741c6 commit 91ae61b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

java/ql/src/Telemetry/AutomodelSharedCharacteristics.qll

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,17 @@ signature module CandidateSig {
3333
*/
3434
class NegativeEndpointType extends EndpointType;
3535

36+
/**
37+
* Gets the endpoint as a location.
38+
*
39+
* This is a utility function to convert an endpoint to its corresponding location.
40+
*/
3641
RelatedLocation asLocation(Endpoint e);
3742

3843
/**
3944
* Defines what MaD kinds are known, and what endpoint type they correspond to.
4045
*/
41-
predicate isKnownLabel(string kind, string humanReadableLabel, EndpointType type);
46+
predicate isKnownKind(string kind, string humanReadableLabel, EndpointType type);
4247

4348
/**
4449
* Should hold for any endpoint that is a flow sanitizer.
@@ -56,6 +61,8 @@ signature module CandidateSig {
5661
predicate isNeutral(Endpoint e);
5762

5863
/**
64+
* Gets a related location.
65+
*
5966
* A related location is a source code location that may hold extra information about an endpoint that can be useful
6067
* to the machine learning model.
6168
*

0 commit comments

Comments
 (0)