/// <summary> /// Add annotation for inner classes. /// </summary> private static void AddStructureAnnotations(ClassDefinition @class) { if (@class.InnerClasses.Count == 0) { return; } foreach (var innerClass in @class.InnerClasses) { innerClass.AddEnclosingClassAnnotation(@class); innerClass.AddInnerClassAnnotation(NameConverter.GetSimpleName(innerClass.Name), innerClass.AccessFlags | AccessFlags.Static); AddStructureAnnotations(innerClass); } @class.AddMemberClassesAnnotation(@class.InnerClasses.Cast <ClassReference>().ToArray()); }