Example #1
0
 // OrExpression
 public override bool Walk(OrExpression node)
 {
     return ShouldWalkWorker(node);
 }
Example #2
0
 // or_test: and_test ('or' and_test)*
 private Expression ParseOrTest()
 {
     Expression ret = ParseAndTest();
     while (MaybeEat(TokenKind.KeywordOr)) {
         string proceeding = _tokenWhiteSpace;
         var start = ret.StartIndex;
         ret = new OrExpression(ret, ParseAndTest());
         if (_verbatim) {
             AddPreceedingWhiteSpace(ret, proceeding);
         }
         ret.SetLoc(start, GetEnd());
     }
     return ret;
 }
Example #3
0
 public override void PostWalk(OrExpression node)
 {
     PostWalkWorker(node);
 }