mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
Fix tuple stubbing with arity < 2
This commit is contained in:
@@ -429,13 +429,16 @@ private string stubClassName(Type t) {
|
||||
else
|
||||
if t instanceof TupleType
|
||||
then
|
||||
result =
|
||||
"(" +
|
||||
concat(int i, Type element |
|
||||
element = t.(TupleType).getElementType(i)
|
||||
|
|
||||
stubClassName(element), "," order by i
|
||||
) + ")"
|
||||
if t.(TupleType).getArity() < 2
|
||||
then result = stubClassName(t.(TupleType).getUnderlyingType())
|
||||
else
|
||||
result =
|
||||
"(" +
|
||||
concat(int i, Type element |
|
||||
element = t.(TupleType).getElementType(i)
|
||||
|
|
||||
stubClassName(element), "," order by i
|
||||
) + ")"
|
||||
else
|
||||
if t instanceof ValueOrRefType
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user