void DecompileQueries(AstNode node) { QueryExpression query = DecompileQuery(node as InvocationExpression); if (query != null) { node.ReplaceWith(query); } }
protected void SetChildByRole <T> (Role <T> role, T newChild) where T : AstNode { AstNode oldChild = GetChildByRole(role); if (oldChild.IsNull) { AddChild(newChild, role); } else { oldChild.ReplaceWith(newChild); } }