src/Misc/EFTools/XmlCore/Model/ModelManager.cs
/// <summary>
///     Asks every EFElement in the given EFArtifactSet to create its normalized name and load that into
///     the global symbol table.
/// </summary>
Asks every EFElement in the given EFArtifactSet to create its normalized name and load that into
the global symbol table.
Asks every EFElement in the given EFArtifactSet to create its normalized name and load that into the global symbol table .
private void NormalizeArtifactSet(EFArtifactSet artifactSet)
        {
            lock (this)
            {
                var visitor = new NormalizingVisitor();
                var lastMissedCount = -1;
                while (visitor.MissedCount != 0)
                {
                    visitor.ResetMissedCount();
                    foreach (var artifact in artifactSet.Artifacts)
                    {
                        visitor.Traverse(artifact);
                    }
                    if (lastMissedCount == visitor.MissedCount)
                    {
                        throw new InvalidDataException("Subsequent passes didn't normalize any new items.");
                    }
                    lastMissedCount = visitor.MissedCount;
                }
            }
        }
private void NormalizeArtifactSet ( EFArtifactSet artifactSet ) { lock ( this ) { var visitor = new NormalizingVisitor ( ) ; var lastMissedCount = - 1 ; while ( visitor . MissedCount != 0 ) { visitor . ResetMissedCount ( ) ; foreach ( var artifact in artifactSet . Artifacts ) { visitor . Traverse ( artifact ) ; } if ( lastMissedCount == visitor . MissedCount ) { throw new InvalidDataException ( " " ) ; } lastMissedCount = visitor . MissedCount ; } } }
Asks every EFElement in the given EFArtifactSet to create its normalized name and load that into
the global symbol table.
Asks every EFElement in the given EFArtifactSet to create its normalized name and load that into the global symbol table .
// every item should be able to normalize
artifactSet
EFArtifactSet