public override object VisitParenthesisExpression([NotNull] DoshikParser.ParenthesisExpressionContext context) { SetWholeExpression(context); VisitChildren(context); _compilationContext.SetParsingAntlrContext(context); var node = new ParenthesisExpressionNode(context); Sequence.Sequence.Add(node); node.Expression = Sequence.FindExpressionByAntlrContext(context.expression()); return(null); }
private IExpression HandleParenthesisExpressionNode(ParenthesisExpressionNode node) { return(FindExpressionByExpressionNode(node.Expression, false)); }