public void AddAttribute(ALFullSyntaxTreeNode node) { if (node != null) { if (this.attributes == null) { this.attributes = new List <ALFullSyntaxTreeNode>(); } this.attributes.Add(node); } }
public void AddChildNode(ALFullSyntaxTreeNode node) { if (node != null) { if (this.childNodes == null) { this.childNodes = new List <ALFullSyntaxTreeNode>(); } this.childNodes.Add(node); } }
public void Load(string source, string filePath) { ALFullSyntaxTreeReader reader = new ALFullSyntaxTreeReader(); if (!String.IsNullOrEmpty(source)) { this.Root = reader.ProcessSourceCode(source); } else { this.Root = reader.ProcessSourceFile(filePath); } }