Exemplo n.º 1
0
        public override void EnterUnaryOpExpression([ValidatedNotNull] KaleidoscopeParser.UnaryOpExpressionContext context)
        {
            context.ValidateNotNull(nameof(context));
            if (ActiveNode is null)
            {
                throw new InvalidOperationException("ActiveNode is null!");
            }

            ActiveNode.Add(new XAttribute("Op", context.Op));
        }
Exemplo n.º 2
0
 public override void EnterUnaryOpExpression([NotNull] KaleidoscopeParser.UnaryOpExpressionContext context)
 {
     ActiveNode.Add(new XAttribute("Op", context.Op));
 }