/
krasninja
/
querycat
Обзор
Документация
Войти
/
krasninja
/
querycat
Код
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/QueryCat.Backend/Commands/Call/CallCommand.cs
16 строк
549 B
Ivan Kozhin
Add "Call" command to execute functions
11 мар 2024, 17:59
11 мар 2024, 17:59
e8afbf0
Код
Авторство
О чём код?
using QueryCat.Backend.Ast.Nodes; using QueryCat.Backend.Ast.Nodes.Call; using QueryCat.Backend.Core.Execution; namespace QueryCat.Backend.Commands.Call; internal sealed class CallCommand : ICommand { /// <inheritdoc /> public IFuncUnit CreateHandler(IExecutionThread<ExecutionOptions> executionThread, StatementNode node) { var declareNode = (CallFunctionNode)node.RootNode; var valueHandler = new CreateDelegateVisitor(executionThread).RunAndReturn(declareNode.FunctionCallNode); return valueHandler; } }