Example #1
0
 public override bool Walk(AwaitExpression node) {
     CanComplete = IsActualExpression(node.Expression);
     CommitByDefault = true;
     return base.Walk(node);
 }
 public override bool Walk(AwaitExpression node) {
     HasSideEffects = true;
     return false;
 }
Example #3
0
 private Expression ParseAwaitExpr() {
     if (_langVersion >= PythonLanguageVersion.V35) {
         if (AllowAsyncAwaitSyntax && MaybeEat(TokenKind.KeywordAwait)) {
             var start = GetStart();
             string whitespace = _tokenWhiteSpace;
             var res = new AwaitExpression(ParsePower());
             if (_verbatim) {
                 AddPreceedingWhiteSpace(res, whitespace);
             }
             res.SetLoc(start, GetEnd());
             return res;
         }
     }
     return ParsePower();
 }
Example #4
0
 public override bool Walk(AwaitExpression node) {
     SeenAwait = true;
     return false;
 }
 public override bool Walk(AwaitExpression node) {
     AddSpan(Tuple.Create("", new Span(node.StartIndex, 5)), PredefinedClassificationTypeNames.Keyword);
     return base.Walk(node);
 }
Example #6
0
 public override bool Walk(AwaitExpression node) {
     return UpdateLineInfo(node, true);
 }