Exemplo n.º 1
0
        // 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());
        }
Exemplo n.º 2
0
        // 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();
        }
Exemplo n.º 3
0
		// 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 ();
		}
Exemplo n.º 4
0
		// 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 ();
		}