Add annotation element names

This commit is contained in:
Tony Torralba
2022-04-19 12:49:16 +02:00
parent d4499a10d2
commit 1ece12efd7

View File

@@ -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) {