Pop() public méthode

public Pop ( ) : TPath
Résultat TPath
Exemple #1
0
        protected Suite findOrCreateSuite(TPath path)
        {
            Suite child = FindSuite(path.Next);

            if (child == null)
            {
                child = new Suite(path.Next);
                AddSuite(child);
            }

            return(path.IsEnd ? child : child.findOrCreateSuite(path.Pop()));
        }
        public IFixtureNode Find(TPath path)
        {
            if (path.IsRoot)
            {
                return this;
            }

            FixtureGraph fixture = FixtureFor(path.Next);

            return path.IsEnd ? fixture : (IFixtureNode) fixture.GrammarFor(path.Pop().Next);
        }