Example #1
0
 public TypeAnnotationConverter(ExpressionEval eval, Expression expr, LookupOptions options = LookupOptions.Global | LookupOptions.Builtins)
 {
     _eval    = eval ?? throw new ArgumentNullException(nameof(eval));
     _expr    = expr;
     _options = options;
 }
Example #2
0
 public FunctionCallEvaluator(IPythonModule declaringModule, FunctionDefinition fd, ExpressionEval eval) : base(eval)
 {
     _declaringModule = declaringModule ?? throw new ArgumentNullException(nameof(declaringModule));
     _eval            = eval ?? throw new ArgumentNullException(nameof(eval));
     _function        = fd ?? throw new ArgumentNullException(nameof(fd));
 }
Example #3
0
 public ScopeTracker(ExpressionEval eval)
 {
     _eval = eval;
 }
 public FunctionCallEvaluator(IPythonModule declaringModule, FunctionDefinition fd, ExpressionEval eval) : base(eval, SimpleImportedVariableHandler.Instance)
 {
     _declaringModule = declaringModule ?? throw new ArgumentNullException(nameof(declaringModule));
     _eval            = eval ?? throw new ArgumentNullException(nameof(eval));
     _function        = fd ?? throw new ArgumentNullException(nameof(fd));
 }
Example #5
0
 public FunctionCallEvaluator(FunctionDefinition fd, ExpressionEval eval, IPythonInterpreter interpreter) : base(eval)
 {
     _eval        = eval ?? throw new ArgumentNullException(nameof(eval));
     _function    = fd ?? throw new ArgumentNullException(nameof(fd));
     _interpreter = interpreter;
 }