mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
QL4QL: Add overlay[discard_entity] annotation
This commit is contained in:
@@ -2554,6 +2554,10 @@ private class LocalQArg extends AnnotationArg {
|
|||||||
LocalQArg() { this.getValue() = "local?" }
|
LocalQArg() { this.getValue() = "local?" }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private class DiscardEntityArg extends AnnotationArg {
|
||||||
|
DiscardEntityArg() { this.getValue() = "discard_entity" }
|
||||||
|
}
|
||||||
|
|
||||||
private class MonotonicAggregatesArg extends AnnotationArg {
|
private class MonotonicAggregatesArg extends AnnotationArg {
|
||||||
MonotonicAggregatesArg() { this.getValue() = "monotonicAggregates" }
|
MonotonicAggregatesArg() { this.getValue() = "monotonicAggregates" }
|
||||||
}
|
}
|
||||||
@@ -2641,6 +2645,15 @@ class OverlayLocalQ extends Annotation {
|
|||||||
override string toString() { result = "overlay[local?]" }
|
override string toString() { result = "overlay[local?]" }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** An `overlay[discard_entity]` annotation. */
|
||||||
|
class OverlayDiscardEntity extends Annotation {
|
||||||
|
OverlayDiscardEntity() {
|
||||||
|
this.getName() = "overlay" and this.getArgs(0) instanceof DiscardEntityArg
|
||||||
|
}
|
||||||
|
|
||||||
|
override string toString() { result = "overlay[discard_entity]" }
|
||||||
|
}
|
||||||
|
|
||||||
/** A `language[monotonicAggregates]` annotation. */
|
/** A `language[monotonicAggregates]` annotation. */
|
||||||
class MonotonicAggregates extends Annotation {
|
class MonotonicAggregates extends Annotation {
|
||||||
MonotonicAggregates() { this.getArgs(0) instanceof MonotonicAggregatesArg }
|
MonotonicAggregates() { this.getArgs(0) instanceof MonotonicAggregatesArg }
|
||||||
|
|||||||
Reference in New Issue
Block a user