private void FixupMatch(Compiler compiler, AstNode node) { Debug.Assert(node.TypeOfAst != AstNode.QueryType.Operator, "Right operand should be path or filter"); this.match = XPathComposer.ComposeXPath(node); this.matchKey = compiler.AddQuery(this.match); this.priority = node.DefaultPriority; }
private void FinishClone(Compiler compiler, AstNode node) { string expression = XPathComposer.ComposeXPath(node); Debug.WriteLine("Split expression: \"" + expression + "\""); this.match = expression; this.matchKey = compiler.AddQuery(this.match); this.priority = node.DefaultPriority; }