mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
Add annotation element names
This commit is contained in:
@@ -400,8 +400,15 @@ private string stubMember(Member m) {
|
||||
|
||||
private string stubAnnotation(Annotation a) {
|
||||
if exists(a.getAValue())
|
||||
then result = a.toString() + "(" + concat(stubAnnotationValue(a.getAValue()), ",") + ")"
|
||||
else result = a.toString()
|
||||
then
|
||||
result =
|
||||
a.getType().getName() + "(" +
|
||||
concat(string name, Expr value |
|
||||
value = a.getValue(name)
|
||||
|
|
||||
name + "=" + stubAnnotationValue(value), ","
|
||||
) + ")"
|
||||
else result = a.getType().getName()
|
||||
}
|
||||
|
||||
private string stubAnnotationSimpleValue(Expr value) {
|
||||
|
||||
Reference in New Issue
Block a user