Exemple #1
0
 /// <summary>
 /// Creates a new TypeNode.
 /// </summary>
 /// <param name="name">The name of the type.</param>
 /// <param name="isPrimitive">Whether the type is a primitive data type.</param>
 /// <param name="splitter">An IdSplitter to split the type name into words.</param>
 /// <param name="tagger">A Tagger to tag the parts-of-speech of each word of the name.</param>
 /// <param name="location">The location of the type.</param>
 public TypeNode(string name, bool isPrimitive, IdSplitter splitter, Tagger tagger, Location location)
     : this(name, isPrimitive, splitter) {
     if(tagger != null) {
         tagger.TagType(this.ParsedName);
     }
     this.SetLocation(location);
 }
 /// <summary>
 /// Creates a new TypeNode.
 /// </summary>
 /// <param name="name">The name of the type.</param>
 /// <param name="isPrimitive">Whether the type is a primitive data type.</param>
 /// <param name="splitter">An IdSplitter to split the type name into words.</param>
 /// <param name="tagger">A Tagger to tag the parts-of-speech of each word of the name.</param>
 /// <param name="location">The location of the type.</param>
 public TypeNode(string name, bool isPrimitive, IdSplitter splitter, Tagger tagger, Location location)
     : this(name, isPrimitive, splitter)
 {
     if (tagger != null)
     {
         tagger.TagType(this.ParsedName);
     }
     this.SetLocation(location);
 }