Example #1
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 #2
0
 public override bool Walk(OrExpression node)
 {
     node.Parent = _currentScope;
     return(base.Walk(node));
 }
Example #3
0
 public override void PostWalk(OrExpression node) { PostWalkWorker(node); }
Example #4
0
 public override bool Walk(OrExpression node) {
     return UpdateLineInfo(node, true);
 }
Example #5
0
 // OrExpression
 public override bool Walk(OrExpression node) { return ShouldWalkWorker(node); }