public EmptyAnalysis(IServiceContainer services, IDocument document)
 {
     Document            = document ?? throw new ArgumentNullException(nameof(document));
     GlobalScope         = new EmptyGlobalScope(document);
     Ast                 = AstUtilities.MakeEmptyAst(document.Uri);
     ExpressionEvaluator = new ExpressionEval(services, document);
 }
Ejemplo n.º 2
0
 public CachedAnalysis(IDocument document, IServiceContainer services)
 {
     Check.ArgumentNotNull(nameof(document), document);
     Document            = document;
     ExpressionEvaluator = new ExpressionEval(services, document, AstUtilities.MakeEmptyAst(document.Uri));
 }