コード例 #1
0
        /// <summary>Transform this VerbBuilder into a VerbPhraseBuilder with tense <paramref name="phraseTense"/> and this as its head</summary>
        internal VerbPhraseBuilder AsVerbPhrase(tense phraseTense)
        {
            VerbPhraseBuilder result = new VerbPhraseBuilder()
            {
                Tense = phraseTense
            };

            Parent?.ReplaceChild(this, result);
            result.AddHead(this);
            return(result);
        }
コード例 #2
0
        /// <summary>Transform this VerbBuilder into a VerbPhraseBuilder with form <paramref name="phraseForm"/> and this as its head</summary>
        internal VerbPhraseBuilder AsVerbPhrase(form phraseForm)
        {
            VerbPhraseBuilder result = new VerbPhraseBuilder()
            {
                Form = phraseForm
            };

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