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);
        }
예제 #2
0
 private IExpression HandleParenthesisExpressionNode(ParenthesisExpressionNode node)
 {
     return(FindExpressionByExpressionNode(node.Expression, false));
 }