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