3 writes to IsInAsync
Microsoft.CodeAnalysis.CSharp (3)
Parser\LanguageParser.cs (3)
4327_parser.IsInAsync = isInAsyncContext ?? parser.IsInAsync; 4335_parser.IsInAsync = (_previousState & LanguageParserState.IsInAsync) != 0; 14564IsInAsync = state.IsInAsync;
19 references to IsInAsync
Microsoft.CodeAnalysis.CSharp (19)
Parser\LanguageParser.cs (18)
570Debug.Assert(!IsInAsync); 1722Debug.Assert(!IsInAsync); 1758Debug.Assert(!IsInAsync); 2562Debug.Assert(!IsInAsync); 2598using var _ = new ParserSyntaxContextResetter(this, isInAsyncContext: this.IsInAsync || !IsScript); 2736using var _ = new ParserSyntaxContextResetter(this, isInAsyncContext: this.IsInAsync || !IsScript); 3206Debug.Assert(!IsInAsync); 3684Debug.Assert(!IsInAsync); 4322(parser.IsInAsync ? LanguageParserState.IsInAsync : 0) | 4327_parser.IsInAsync = isInAsyncContext ?? parser.IsInAsync; 6074if (this.IsInAsync && identifierToken.ContextualKind == SyntaxKind.AwaitKeyword) 8421!IsInAsync) 9832if (this.IsInAsync && this.CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword) 11362return (this.IsScript || this.IsInAsync) && this.CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword; 11369if (this.IsInAsync) 13713isInAsyncContext: this.IsInAsync || modifiers.Any((int)SyntaxKind.AsyncKeyword), 13830isInAsyncContext: this.IsInAsync || modifiers.Any((int)SyntaxKind.AsyncKeyword), 14556IsInAsync,
Parser\LanguageParser_InterpolatedString.cs (1)
209var interpolationNode = ParseInterpolation(this.Options, originalText, interpolation, kind, IsInAsync, IsInFieldKeywordContext);