Exemple #1
0
 private Annotation FindWidgetPropertiesFieldAnnotation(Context context, CategoryDeclaration declaration)
 {
     foreach (Annotation a in declaration.GetAllAnnotations(context))
     {
         if ("@WidgetField" != a.Name)
         {
             continue;
         }
         Object value = a.GetArgument("isProperties");
         if (value is BooleanLiteral && ((BooleanValue)((BooleanLiteral)value).getValue()).Value)
         {
             return(a);
         }
     }
     return(null);
 }