ConcreteSyntaxTree() публичный Метод

Returns string representing concrete syntax tree
public ConcreteSyntaxTree ( ) : string
Результат string
Пример #1
0
        private string ConcreteSyntaxTree(string inted)
        {
            string tree = Term.Name + "\r\n";

            inted += " ";
            foreach (AstNode node in ChildNodes)
            {
                ScriptAst scriptNode = node as ScriptAst;
                if (scriptNode != null)
                {
                    tree += inted + scriptNode.ConcreteSyntaxTree(inted);
                }
                else
                {
                    if (!string.IsNullOrEmpty(node.Term.DisplayName))
                    {
                        tree += inted + node.ToString() + "\r\n";
                    }
                }
            }
            return(tree);
        }