public override void VisitPseudoConstUse(PseudoConstUse x) { ConsumeToken(TokenFacts.GetPseudoConstUseToken(x.Type), x.Span.Start); }
public override void VisitBinaryEx(BinaryEx x) { VisitElement(x.LeftExpr); ConsumeToken(TokenFacts.GetOperationToken(x.Operation), x.OperationPosition); VisitElement(x.RightExpr); }
/// <summary> /// Shortcut for <see cref="ConsumeToken(Tokens, string, int)"/>. /// </summary> protected void ConsumeToken(Tokens token, int position = -1) => ConsumeToken(token, TokenFacts.GetTokenText(token), position);
public override void VisitUnaryEx(UnaryEx x) { ConsumeToken(TokenFacts.GetOperationToken(x.Operation), x.OperationPosition); VisitElement(x.Expr); }