public override bool Walk(ComprehensionIf node) { CanComplete = true; CommitByDefault = true; return base.Walk(node); }
// 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; }
public override bool Walk(ComprehensionIf node) { node.Parent = _currentScope; return(base.Walk(node)); }
public override bool Walk(ComprehensionIf node) { return UpdateLineInfo(node, true); }
public override void PostWalk(ComprehensionIf node) { PostWalkWorker(node); }
// ComprehensionIf public override bool Walk(ComprehensionIf node) { return ShouldWalkWorker(node); }