3 writes to IsInAsync
Microsoft.CodeAnalysis.CSharp (3)
Parser\LanguageParser.cs (3)
4353_parser.IsInAsync = isInAsyncContext ?? parser.IsInAsync; 4361_parser.IsInAsync = (_previousState & LanguageParserState.IsInAsync) != 0; 14632IsInAsync = state.IsInAsync;
19 references to IsInAsync
Microsoft.CodeAnalysis.CSharp (19)
Parser\LanguageParser_InterpolatedString.cs (1)
209var interpolationNode = ParseInterpolation(this.Options, originalText, interpolation, kind, IsInAsync, IsInFieldKeywordContext);
Parser\LanguageParser.cs (18)
570Debug.Assert(!IsInAsync); 1759Debug.Assert(!IsInAsync); 1795Debug.Assert(!IsInAsync); 2592Debug.Assert(!IsInAsync); 2629using var _ = new ParserSyntaxContextResetter(this, isInAsyncContext: this.IsInAsync || !IsScript); 2771using var _ = new ParserSyntaxContextResetter(this, isInAsyncContext: this.IsInAsync || !IsScript); 3241Debug.Assert(!IsInAsync); 3719Debug.Assert(!IsInAsync); 4348(parser.IsInAsync ? LanguageParserState.IsInAsync : 0) | 4353_parser.IsInAsync = isInAsyncContext ?? parser.IsInAsync; 6079if (this.IsInAsync && identifierToken.ContextualKind == SyntaxKind.AwaitKeyword) 8408!IsInAsync) 9837if (this.IsInAsync && this.CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword) 11373return (this.IsScript || this.IsInAsync) && this.CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword; 11380if (this.IsInAsync) 13738isInAsyncContext: this.IsInAsync || modifiers.Any((int)SyntaxKind.AsyncKeyword), 13898isInAsyncContext: this.IsInAsync || modifiers.Any((int)SyntaxKind.AsyncKeyword), 14624IsInAsync,