Skip to content

Commit 1318504

Browse files
committed
Add QLDoc
1 parent 87992fa commit 1318504

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

go/ql/lib/semmle/go/Types.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,9 @@ class PointerType extends @pointertype, CompositeType {
638638
override string toString() { result = "pointer type" }
639639
}
640640

641+
/**
642+
* Gets the base type if `t` is a pointer type, otherwise `t` itself.
643+
*/
641644
Type lookThroughPointerType(Type t) {
642645
not t instanceof PointerType and
643646
result = t

0 commit comments

Comments
 (0)