Пример #1
0
 public override bool Walk(ComprehensionIf node) {
     CanComplete = true;
     CommitByDefault = true;
     return base.Walk(node);
 }
Пример #2
0
        // list_if: 'if' old_test [list_iter]
        // comp_if: 'if' old_test [comp_iter]
        private ComprehensionIf ParseCompIf() {
            var start = GetStart();
            Eat(TokenKind.KeywordIf);
            string ifWhiteSpace = _tokenWhiteSpace;
            Expression expr = ParseOldExpression();
            var end = GetEnd();

            ComprehensionIf ret = new ComprehensionIf(expr);
            ret.HeaderIndex = end;
            if (_verbatim) {
                AddPreceedingWhiteSpace(ret, ifWhiteSpace);
            }
            ret.SetLoc(start, end);
            return ret;
        }
Пример #3
0
 public override bool Walk(ComprehensionIf node)
 {
     node.Parent = _currentScope;
     return(base.Walk(node));
 }
Пример #4
0
 public override bool Walk(ComprehensionIf node) {
     return UpdateLineInfo(node, true);
 }
Пример #5
0
 public override void PostWalk(ComprehensionIf node) { PostWalkWorker(node); }
Пример #6
0
 // ComprehensionIf
 public override bool Walk(ComprehensionIf node) { return ShouldWalkWorker(node); }