/// <summary>Transform this VerbBuilder into a VerbPhraseBuilder with this as its head</summary> internal VerbPhraseBuilder AsVerbPhrase() { VerbPhraseBuilder result = new VerbPhraseBuilder(this); Parent?.ReplaceChild(this, result); //result.AddHead(this); return(result); }
/// <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); }
/// <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); }