Change NotASinkType to NegativeType

Fixes https://github.com/github/ml-ql-adaptive-threat-modeling/issues/1819
This commit is contained in:
annarailton
2022-03-29 16:26:48 +01:00
parent 4eaec3953a
commit de4e01a8f2

View File

@@ -6,7 +6,7 @@
* representation of each of these classes.
*/
newtype TEndpointType =
TNotASinkType() or
TNegativeType() or
TXssSinkType() or
TNosqlInjectionSinkType() or
TSqlInjectionSinkType() or
@@ -21,9 +21,9 @@ abstract class EndpointType extends TEndpointType {
string toString() { result = getDescription() }
}
/** The `NotASink` class that can be predicted by endpoint scoring models. */
class NotASinkType extends EndpointType, TNotASinkType {
override string getDescription() { result = "NotASink" }
/** The `Negative` class that can be predicted by endpoint scoring models. */
class NegativeType extends EndpointType, TNegativeType {
override string getDescription() { result = "Negative" }
override int getEncoding() { result = 0 }
}