Skip to content

Commit a7458df

Browse files
committed
Python: Appease the QLDoc checker
1 parent c6ad438 commit a7458df

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

python/ql/lib/LegacyPointsTo.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ class ClassWithPointsTo extends Class {
299299
override string getAQlClass() { none() }
300300
}
301301

302+
/** Gets the `Object` corresponding to the immutable literal `l`. */
302303
Object getLiteralObject(ImmutableLiteral l) {
303304
l instanceof IntegerLiteral and
304305
(

python/ql/lib/semmle/python/Exprs.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,7 @@ class StringLiteral extends Str_, ImmutableLiteral {
565565
override string toString() { result = "StringLiteral" }
566566
}
567567

568+
/** Holds if `n` is a named constant (`True`, `False`, or `None`) with name `id`. */
568569
predicate name_consts(Name_ n, string id) {
569570
exists(Variable v | py_variables(v, n) and id = v.getId() |
570571
id = "True" or id = "False" or id = "None"

python/ql/lib/semmle/python/types/Exceptions.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ predicate scope_raises_unknown(Scope s) {
368368
)
369369
}
370370

371+
/** An extension of `ExceptFlowNode` that provides points-to related methods. */
371372
class ExceptFlowNodeWithPointsTo extends ExceptFlowNode {
372373
private predicate handledObject_objectapi(Object obj, ClassObject cls, ControlFlowNode origin) {
373374
this.getType().(ControlFlowNodeWithPointsTo).refersTo(obj, cls, origin)

0 commit comments

Comments
 (0)