ABB.Swum.Nodes.PhraseNode.PhraseNode C# (CSharp) Method

PhraseNode() public method

Creates a new PhraseNode that contains the given words.
public PhraseNode ( IEnumerable words, Location location, bool containsPreposition ) : System
words IEnumerable A list of the words in the phrase.
location Location The program location of the phrase.
containsPreposition bool Whether the phrase contains any prepositions or not.
return System
        public PhraseNode(IEnumerable<WordNode> words, Location location, bool containsPreposition) {
            if(words != null) {
                this.Words = new List<WordNode>(words);
            } else {
                this.Words = new List<WordNode>();
            }
            this.Location = location;
            this.ContainsPrepostion = containsPreposition;
        }

Same methods

PhraseNode::PhraseNode ( ) : System
PhraseNode::PhraseNode ( IEnumerable words ) : System
PhraseNode::PhraseNode ( string id, IdSplitter splitter ) : System