3 writes to IsInAsync
Microsoft.CodeAnalysis.CSharp (3)
Parser\LanguageParser.cs (3)
4285_parser.IsInAsync = isInAsyncContext ?? parser.IsInAsync; 4293_parser.IsInAsync = (_previousState & LanguageParserState.IsInAsync) != 0; 14478IsInAsync = state.IsInAsync;
19 references to IsInAsync
Microsoft.CodeAnalysis.CSharp (19)
Parser\LanguageParser.cs (18)
570Debug.Assert(!IsInAsync); 1697Debug.Assert(!IsInAsync); 1733Debug.Assert(!IsInAsync); 2520Debug.Assert(!IsInAsync); 2556using var _ = new ParserSyntaxContextResetter(this, isInAsyncContext: this.IsInAsync || !IsScript); 2694using var _ = new ParserSyntaxContextResetter(this, isInAsyncContext: this.IsInAsync || !IsScript); 3164Debug.Assert(!IsInAsync); 3642Debug.Assert(!IsInAsync); 4280(parser.IsInAsync ? LanguageParserState.IsInAsync : 0) | 4285_parser.IsInAsync = isInAsyncContext ?? parser.IsInAsync; 6011if (this.IsInAsync && identifierToken.ContextualKind == SyntaxKind.AwaitKeyword) 8358!IsInAsync) 9775if (this.IsInAsync && this.CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword) 11303return (this.IsScript || this.IsInAsync) && this.CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword; 11310if (this.IsInAsync) 13627isInAsyncContext: this.IsInAsync || modifiers.Any((int)SyntaxKind.AsyncKeyword), 13744isInAsyncContext: this.IsInAsync || modifiers.Any((int)SyntaxKind.AsyncKeyword), 14470IsInAsync,
Parser\LanguageParser_InterpolatedString.cs (1)
209var interpolationNode = ParseInterpolation(this.Options, originalText, interpolation, kind, IsInAsync, IsInFieldKeywordContext);