3 writes to IsInAsync
Microsoft.CodeAnalysis.CSharp (3)
Parser\LanguageParser.cs (3)
4378
_parser.
IsInAsync
= isInAsyncContext ?? parser.IsInAsync;
4386
_parser.
IsInAsync
= (_previousState & LanguageParserState.IsInAsync) != 0;
14650
IsInAsync
= state.IsInAsync;
19 references to IsInAsync
Microsoft.CodeAnalysis.CSharp (19)
Parser\LanguageParser.cs (18)
570
Debug.Assert(!
IsInAsync
);
1754
Debug.Assert(!
IsInAsync
);
1790
Debug.Assert(!
IsInAsync
);
2608
Debug.Assert(!
IsInAsync
);
2645
using var _ = new ParserSyntaxContextResetter(this, isInAsyncContext: this.
IsInAsync
|| !IsScript);
2787
using var _ = new ParserSyntaxContextResetter(this, isInAsyncContext: this.
IsInAsync
|| !IsScript);
3257
Debug.Assert(!
IsInAsync
);
3735
Debug.Assert(!
IsInAsync
);
4373
(parser.
IsInAsync
? LanguageParserState.IsInAsync : 0) |
4378
_parser.IsInAsync = isInAsyncContext ?? parser.
IsInAsync
;
6125
if (this.
IsInAsync
&& identifierToken.ContextualKind == SyntaxKind.AwaitKeyword)
8472
!
IsInAsync
)
9901
if (this.
IsInAsync
&& this.CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword)
11437
return (this.IsScript || this.
IsInAsync
) && this.CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword;
11444
if (this.
IsInAsync
)
13799
isInAsyncContext: this.
IsInAsync
|| modifiers.Any((int)SyntaxKind.AsyncKeyword),
13916
isInAsyncContext: this.
IsInAsync
|| modifiers.Any((int)SyntaxKind.AsyncKeyword),
14642
IsInAsync
,
Parser\LanguageParser_InterpolatedString.cs (1)
209
var interpolationNode = ParseInterpolation(this.Options, originalText, interpolation, kind,
IsInAsync
, IsInFieldKeywordContext);