src/Misc/EFTools/XmlCore/Model/ModelManager.cs
/// <summary>
///     Asks the passed in item all of its children to create its normalized name
///     and load that into the global symbol table.
/// </summary>
Asks the passed in item all of its children to create its normalized name
and load that into the global symbol table.
Asks the passed in item all of its children to create its normalized name and load that into the global symbol table .
internal static void NormalizeItem(EFContainer item)
        {
            var visitor = new NormalizingVisitor();
            var lastMissedCount = -1;
            while (visitor.MissedCount != 0)
            {
                visitor.ResetMissedCount();
                visitor.Traverse(item);
                if (lastMissedCount == visitor.MissedCount)
                {
                    throw new InvalidDataException();
                }
                lastMissedCount = visitor.MissedCount;
            }
        }
internal static void NormalizeItem ( EFContainer item ) { var visitor = new NormalizingVisitor ( ) ; var lastMissedCount = - 1 ; while ( visitor . MissedCount != 0 ) { visitor . ResetMissedCount ( ) ; visitor . Traverse ( item ) ; if ( lastMissedCount == visitor . MissedCount ) { throw new InvalidDataException ( ) ; } lastMissedCount = visitor . MissedCount ; } }
Asks the passed in item all of its children to create its normalized name
and load that into the global symbol table.
Asks the passed in item all of its children to create its normalized name and load that into the global symbol table .
// every item should be able to normalize // subsequent passes didn't normalize any new items
item
EFContainer