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