Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit c0fbd03

Browse files
committed
Add qldoc for getTermInIntersection
1 parent 3129c3d commit c0fbd03

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ql/lib/semmle/go/Types.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,9 @@ private TypeSetTerm getIntersection(TypeSetTerm term1, TypeSetTerm term2) {
668668
if term1.hasTilde() then result = term2 else result = term1
669669
}
670670

671+
/**
672+
* Gets a term in the intersection of type-set literals `a` and `b`.
673+
*/
671674
TypeSetTerm getTermInIntersection(TypeSetLiteralType a, TypeSetLiteralType b) {
672675
result = getIntersection(a.getATerm(), b.getATerm())
673676
}

0 commit comments

Comments
 (0)