Beispiel #1
0
            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);
            }
Beispiel #2
0
        /// <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);
        }