Skip to content

Commit 47c69d9

Browse files
committed
C#: Update comment on the isSupported predicate.
1 parent 86888b8 commit 47c69d9

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

csharp/ql/src/Telemetry/ExternalApi.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@ class ExternalApi extends DotNet::Callable {
109109
pragma[nomagic]
110110
predicate isNeutral() { this instanceof FlowSummaryImpl::Public::NeutralCallable }
111111

112-
/** Holds if this API is supported by existing CodeQL libraries, that is, it is either a recognized source or sink or has a flow summary. */
112+
/**
113+
* Holds if this API is supported by existing CodeQL libraries, that is, it is either a
114+
* recognized source, sink or neutral or it has a flow summary.
115+
*/
113116
predicate isSupported() {
114117
this.hasSummary() or this.isSource() or this.isSink() or this.isNeutral()
115118
}

java/ql/src/Telemetry/ExternalApi.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ class ExternalApi extends Callable {
9696
pragma[nomagic]
9797
predicate isNeutral() { this = any(FlowSummaryImpl::Public::NeutralCallable nsc).asCallable() }
9898

99-
/** Holds if this API is supported by existing CodeQL libraries, that is, it is either a recognized source or sink or has a flow summary. */
99+
/**
100+
* Holds if this API is supported by existing CodeQL libraries, that is, it is either a
101+
* recognized source, sink or neutral or it has a flow summary.
102+
*/
100103
predicate isSupported() {
101104
this.hasSummary() or this.isSource() or this.isSink() or this.isNeutral()
102105
}

0 commit comments

Comments
 (0)