Exemple #1
0
 public void AddAttribute(ALFullSyntaxTreeNode node)
 {
     if (node != null)
     {
         if (this.attributes == null)
         {
             this.attributes = new List <ALFullSyntaxTreeNode>();
         }
         this.attributes.Add(node);
     }
 }
Exemple #2
0
 public void AddChildNode(ALFullSyntaxTreeNode node)
 {
     if (node != null)
     {
         if (this.childNodes == null)
         {
             this.childNodes = new List <ALFullSyntaxTreeNode>();
         }
         this.childNodes.Add(node);
     }
 }
Exemple #3
0
        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);
            }
        }