void DecompileQueries(AstNode node)
        {
            QueryExpression query = DecompileQuery(node as InvocationExpression);

            if (query != null)
            {
                node.ReplaceWith(query);
            }
        }
コード例 #2
0
        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);
            }
        }