Esempio n. 1
0
 public ALFullSyntaxTreeNode ProcessSourceCode(string source)
 {
     try
     {
         SyntaxTree sourceTree = SyntaxTreeExtensions.SafeParseObjectText(source);
         return(ProcessSyntaxTree(sourceTree));
     }
     catch (Exception e)
     {
         return(new ALFullSyntaxTreeNode(e));
     }
 }
        public void VisitSourceCode(string sourceCode)
        {
            SyntaxTree syntaxTree = SyntaxTreeExtensions.SafeParseObjectText(sourceCode);

            if (syntaxTree != null)
            {
                SyntaxNode node = syntaxTree.GetRoot();
                if (node != null)
                {
                    this.Visit(node);
                }
            }
        }
        public ALSyntaxTreeSymbol ProcessSourceCode(string source)
        {
            SyntaxTree syntaxTree = SyntaxTreeExtensions.SafeParseObjectText(source);

            if (syntaxTree != null)
            {
                SyntaxNode node = syntaxTree.GetRoot();
                if (node != null)
                {
                    return(ProcessSyntaxTreeNode(syntaxTree, node));
                }
            }
            return(null);
        }
Esempio n. 4
0
        public ALSymbolInformation ProcessSourceCode(string source)
        {
            SyntaxTree sourceTree = SyntaxTreeExtensions.SafeParseObjectText(source);

            return(ProcessSyntaxTree(sourceTree));
        }