We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87992fa commit 1318504Copy full SHA for 1318504
go/ql/lib/semmle/go/Types.qll
@@ -638,6 +638,9 @@ class PointerType extends @pointertype, CompositeType {
638
override string toString() { result = "pointer type" }
639
}
640
641
+/**
642
+ * Gets the base type if `t` is a pointer type, otherwise `t` itself.
643
+ */
644
Type lookThroughPointerType(Type t) {
645
not t instanceof PointerType and
646
result = t
0 commit comments