mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
If an annotation value is an array, order its elements by index
This commit is contained in:
@@ -432,7 +432,13 @@ private string stubAnnotationValue(Expr value) {
|
||||
result = stubAnnotationSimpleValue(value)
|
||||
or
|
||||
value instanceof ArrayInit and
|
||||
result = "{" + concat(stubAnnotationSimpleValue(value.(ArrayInit).getAnInit()), ",") + "}"
|
||||
result =
|
||||
"{" +
|
||||
concat(int i, Expr arrayElement |
|
||||
arrayElement = value.(ArrayInit).getInit(i)
|
||||
|
|
||||
stubAnnotationSimpleValue(arrayElement), "," order by i
|
||||
) + "}"
|
||||
}
|
||||
|
||||
bindingset[s]
|
||||
|
||||
Reference in New Issue
Block a user