3 writes to IsInAsync
Microsoft.CodeAnalysis.CSharp (3)
Parser\LanguageParser.cs (3)
4340
_parser.
IsInAsync
= isInAsyncContext ?? parser.IsInAsync;
4348
_parser.
IsInAsync
= (_previousState & LanguageParserState.IsInAsync) != 0;
14577
IsInAsync
= state.IsInAsync;
19 references to IsInAsync
Microsoft.CodeAnalysis.CSharp (19)
Parser\LanguageParser.cs (18)
570
Debug.Assert(!
IsInAsync
);
1735
Debug.Assert(!
IsInAsync
);
1771
Debug.Assert(!
IsInAsync
);
2575
Debug.Assert(!
IsInAsync
);
2611
using var _ = new ParserSyntaxContextResetter(this, isInAsyncContext: this.
IsInAsync
|| !IsScript);
2749
using var _ = new ParserSyntaxContextResetter(this, isInAsyncContext: this.
IsInAsync
|| !IsScript);
3219
Debug.Assert(!
IsInAsync
);
3697
Debug.Assert(!
IsInAsync
);
4335
(parser.
IsInAsync
? LanguageParserState.IsInAsync : 0) |
4340
_parser.IsInAsync = isInAsyncContext ?? parser.
IsInAsync
;
6087
if (this.
IsInAsync
&& identifierToken.ContextualKind == SyntaxKind.AwaitKeyword)
8434
!
IsInAsync
)
9845
if (this.
IsInAsync
&& this.CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword)
11375
return (this.IsScript || this.
IsInAsync
) && this.CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword;
11382
if (this.
IsInAsync
)
13726
isInAsyncContext: this.
IsInAsync
|| modifiers.Any((int)SyntaxKind.AsyncKeyword),
13843
isInAsyncContext: this.
IsInAsync
|| modifiers.Any((int)SyntaxKind.AsyncKeyword),
14569
IsInAsync
,
Parser\LanguageParser_InterpolatedString.cs (1)
209
var interpolationNode = ParseInterpolation(this.Options, originalText, interpolation, kind,
IsInAsync
, IsInFieldKeywordContext);