public override void visit(Generated.StructureElement obj, bool visitSubNodes) { Types.StructureElement element = (Types.StructureElement)obj; if (element.Type == Target) { Usages.Add(element); } base.visit(obj, visitSubNodes); }
/// <summary> /// Cleans all text fields in this element /// </summary> /// <param name="obj"></param> /// <param name="visitSubNodes"></param> public override void visit(Generated.StructureElement obj, bool visitSubNodes) { if (obj.getTypeName() != null) { obj.setTypeName(obj.getTypeName().Trim()); } if (obj.getDefault() != null) { obj.setDefault(obj.getDefault().Trim()); } base.visit(obj, visitSubNodes); }