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;
14369
IsInAsync
= state.IsInAsync;
19 references to IsInAsync
Microsoft.CodeAnalysis.CSharp (19)
Parser\LanguageParser.cs (18)
570
Debug.Assert(!
IsInAsync
);
1697
Debug.Assert(!
IsInAsync
);
1733
Debug.Assert(!
IsInAsync
);
2520
Debug.Assert(!
IsInAsync
);
2556
using var _ = new ParserSyntaxContextResetter(this, isInAsyncContext: this.
IsInAsync
|| !IsScript);
2694
using var _ = new ParserSyntaxContextResetter(this, isInAsyncContext: this.
IsInAsync
|| !IsScript);
3164
Debug.Assert(!
IsInAsync
);
3642
Debug.Assert(!
IsInAsync
);
4280
(parser.
IsInAsync
? LanguageParserState.IsInAsync : 0) |
4285
_parser.IsInAsync = isInAsyncContext ?? parser.
IsInAsync
;
5950
if (this.
IsInAsync
&& identifierToken.ContextualKind == SyntaxKind.AwaitKeyword)
8297
!
IsInAsync
)
9714
if (this.
IsInAsync
&& this.CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword)
11209
return (this.IsScript || this.
IsInAsync
) && this.CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword;
11216
if (this.
IsInAsync
)
13518
isInAsyncContext: this.
IsInAsync
|| modifiers.Any((int)SyntaxKind.AsyncKeyword),
13635
isInAsyncContext: this.
IsInAsync
|| modifiers.Any((int)SyntaxKind.AsyncKeyword),
14361
IsInAsync
,
Parser\LanguageParser_InterpolatedString.cs (1)
209
var interpolationNode = ParseInterpolation(this.Options, originalText, interpolation, kind,
IsInAsync
, IsInFieldKeywordContext);