public override void Visit(UnaryOpNode node) { Contracts.AssertValue(node); if (TryShowValue(node)) { return; } Precedence prec = GetPrec(node.Arg); _wrt.Write(GetString(node.Op)); if (prec < Precedence.PrefixUnary) { _wrt.Write('('); } node.Arg.Accept(this); if (prec < Precedence.PrefixUnary) { _wrt.Write(')'); } ShowType(node); }
public override void PostVisit(UnaryOpNode node) { Contracts.Assert(false); }
public abstract void Visit(UnaryOpNode node);
public override bool PreVisit(UnaryOpNode node) { Visit(node); return(false); }
public virtual bool PreVisit(UnaryOpNode node) { return(true); }