// Static method public static XQueryStaticContext Compile(XQueryModule module, XQueryCompileOptions options, Evidence evidence, XQueryCommandImpl commandImpl) { if (options == null) { options = new XQueryCompileOptions(); } return(new XQueryASTCompiler(module, options, new XQueryCompileContext(), evidence, commandImpl).Compile()); }
// Constructor private XQueryASTCompiler(XQueryModule module, XQueryCompileOptions options, XQueryCompileContext compileContext, Evidence evidence, XQueryCommandImpl commandImpl) { this.module = module; this.options = options; this.compileContext = compileContext; this.evidence = evidence; this.commandImpl = commandImpl; inScopeSchemas = new XmlSchemaSet(); localVariables = new Hashtable(); localFunctions = new XQueryFunctionTable(); }
// Constructor private XQueryASTCompiler (XQueryModule module, XQueryCompileOptions options, XQueryCompileContext compileContext, Evidence evidence, XQueryCommandImpl commandImpl) { this.module = module; this.options = options; this.compileContext = compileContext; this.evidence = evidence; this.commandImpl = commandImpl; inScopeSchemas = new XmlSchemaSet (); localVariables = new Hashtable (); localFunctions = new XQueryFunctionTable (); }
// Static method public static XQueryStaticContext Compile (XQueryModule module, XQueryCompileOptions options, Evidence evidence, XQueryCommandImpl commandImpl) { if (options == null) options = new XQueryCompileOptions (); return new XQueryASTCompiler (module, options, new XQueryCompileContext (), evidence, commandImpl).Compile (); }