void GenerateTag(AbstractObjectKind tagName, params char[] delims) { ObjectKind = tagName; scanner.Position += tagName.ToString().Length - 1; FillTagTillChar(delims); ObjectKind = AbstractObjectKind.None; writer.Write(">"); }
void AccessorDepthApply(string tag, AbstractObjectKind kind, bool applyAccessors = false) { string Name = tag.Replace(kind.ToString() + " ", string.Empty); //Create the collection entry for the AbstractSyntaxKind, adding it to the global node and making it the current deepest var tmp = new AbstractSyntaxCollection() { Name = Name.Trim(), ObjectKind = kind, Parent = DeepestNode }; if (applyAccessors) { tmp.SyntaxObjects = Accessors.ToList(); } DeepestNode.Children.Add(tmp); DeepestNode = tmp; collectionHeirarchy.Push(Name); collectionHeirarchyKind.Push(kind); //Specify the kind of object we're in }