/
krasninja
/
querycat
Обзор
Документация
Войти
/
krasninja
/
querycat
Код
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/QueryCat.Backend/Parser/ProgramParserVisitor.Call.cs
22 строки
672 B
Ivan Kozhin
Add "Call" command to execute functions
11 мар 2024, 17:59
11 мар 2024, 17:59
e8afbf0
Код
Авторство
О чём код?
using QueryCat.Backend.Ast; using QueryCat.Backend.Ast.Nodes.Call; using QueryCat.Backend.Ast.Nodes.Function; namespace QueryCat.Backend.Parser; internal partial class ProgramParserVisitor { #region Call /// <inheritdoc /> public override IAstNode VisitStatementCall(QueryCatParser.StatementCallContext context) => new CallFunctionStatementNode( this.Visit<CallFunctionNode>(context.callStatement())); /// <inheritdoc /> public override IAstNode VisitCallStatement(QueryCatParser.CallStatementContext context) => new CallFunctionNode( this.Visit<FunctionCallNode>(context.functionCall())); #endregion }