зеркало из https://github.com/github/codeql-go.git
Add qldoc for `getTermInIntersection`
This commit is contained in:
Родитель
3129c3dd69
Коммит
c0fbd03133
|
@ -668,6 +668,9 @@ private TypeSetTerm getIntersection(TypeSetTerm term1, TypeSetTerm term2) {
|
|||
if term1.hasTilde() then result = term2 else result = term1
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a term in the intersection of type-set literals `a` and `b`.
|
||||
*/
|
||||
TypeSetTerm getTermInIntersection(TypeSetLiteralType a, TypeSetLiteralType b) {
|
||||
result = getIntersection(a.getATerm(), b.getATerm())
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче