Example #1
0
            /// <summary>
            ///     Cleans up the declared elements dictionaries
            /// </summary>
            /// <param name="obj"></param>
            /// <param name="visitSubNodes"></param>
            public override void visit(IXmlBBase obj, bool visitSubNodes)
            {
                ModelElement modelElement = obj as ModelElement;

                if (modelElement != null && ClearCaches)
                {
                    modelElement.ClearCache();
                }

                ISubDeclarator subDeclarator = obj as ISubDeclarator;

                if (subDeclarator != null)
                {
                    subDeclarator.InitDeclaredElements();
                }

                base.visit(obj, visitSubNodes);
            }