public DddTokenTag(DddTokenTag parent, SyntaxConcept concept) { this.Concept = concept; this.Parent = parent; this.Type = concept.Type == SyntaxType.RuleStart ? DddTokenTypes.RuleStart : ConceptToToken(concept.Type); if (parent != null) { parent.Children.Add(this); } }
public DddTokenTag(DddTokenTypes type) { this.type = type; }