public FunctionCompilerFactory(FunctionRepository repository)
 {
     _specialCompilers.Add(typeof(If), new IfFunctionCompiler(repository.GetFunction("if")));
     _specialCompilers.Add(typeof(IfError), new IfErrorFunctionCompiler(repository.GetFunction("iferror")));
     _specialCompilers.Add(typeof(IfNa), new IfNaFunctionCompiler(repository.GetFunction("ifna")));
     foreach (var key in repository.CustomCompilers.Keys)
     {
       _specialCompilers.Add(key, repository.CustomCompilers[key]);
     }
 }
Esempio n. 2
0
 public FunctionCompilerFactory(FunctionRepository repository)
 {
     _specialCompilers.Add(typeof(If), new IfFunctionCompiler(repository.GetFunction("if")));
     _specialCompilers.Add(typeof(IfError), new IfErrorFunctionCompiler(repository.GetFunction("iferror")));
     _specialCompilers.Add(typeof(IfNa), new IfNaFunctionCompiler(repository.GetFunction("ifna")));
 }