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