public XQueryPageCodeDomTreeGenerator (XQueryPageParser parser) : base(parser) { this.parser = parser; _PageBaseClass = typeof(XQueryPage); }
public override void GenerateCode(AssemblyBuilder assemblyBuilder) { base.GenerateCode(assemblyBuilder); // test compilation XQueryPageParser xqueryParser = (XQueryPageParser)Parser; IXQueryProcessor proc = Processors.XQuery[xqueryParser.ProcessorName]; using (Stream source = this.OpenStream()) { try { proc.Compile(source, new XQueryCompileOptions { BaseUri = this.PhysicalPath }); } catch (ProcessorException ex) { throw CreateCompileException(ex); } } }
public XQueryPageCodeDomTreeGenerator(XQueryPageParser parser) : base(parser) { this.parser = parser; _PageBaseClass = typeof(XQueryPage); }