string GetIndent(AstNode node) { if (node == null || node is SyntaxTree) return ""; if (node is BlockStatement || node is TypeDeclaration || node is NamespaceDeclaration) return "\t" + GetIndent(node.Parent); return GetIndent(node.Parent); }