private void BecomeAdverbPhrase()
        {
            AdverbPhraseBuilder adverbPhrase = new AdverbPhraseBuilder();

            Parent?.ReplaceChild(this, adverbPhrase);
            MoveChildrenTo(adverbPhrase);
        }
Beispiel #2
0
        /// <summary>Transform this AdverbBuilder into an AdverbPhraseBuilder with this as its head.</summary>
        internal AdverbPhraseBuilder AsAdverbPhrase()
        {
            AdverbPhraseBuilder result = new AdverbPhraseBuilder();

            Parent?.ReplaceChild(this, result);
            result.AddHead(this);
            return(result);
        }