public override object VisitNotExpression([NotNull] DoshikParser.NotExpressionContext context) { SetWholeExpression(context); VisitChildren(context); _compilationContext.SetParsingAntlrContext(context); var node = new NotExpressionNode(context); node.Expression = Sequence.FindExpressionByAntlrContext(context.expression()); Sequence.Sequence.Add(node); return(null); }
private IExpression HandleNotExpressionNode(NotExpressionNode node) { return(CreateStaticMethodCallExpressionForUnaryOperator("op_UnaryNegation", node.Expression)); }