3 writes to IsInAsync
Microsoft.CodeAnalysis.CSharp (3)
Parser\LanguageParser.cs (3)
4373
_parser.
IsInAsync
= isInAsyncContext ?? parser.IsInAsync;
4381
_parser.
IsInAsync
= (_previousState & LanguageParserState.IsInAsync) != 0;
14614
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
);
2644
using var _ = new ParserSyntaxContextResetter(this, isInAsyncContext: this.
IsInAsync
|| !IsScript);
2782
using var _ = new ParserSyntaxContextResetter(this, isInAsyncContext: this.
IsInAsync
|| !IsScript);
3252
Debug.Assert(!
IsInAsync
);
3730
Debug.Assert(!
IsInAsync
);
4368
(parser.
IsInAsync
? LanguageParserState.IsInAsync : 0) |
4373
_parser.IsInAsync = isInAsyncContext ?? parser.
IsInAsync
;
6120
if (this.
IsInAsync
&& identifierToken.ContextualKind == SyntaxKind.AwaitKeyword)
8467
!
IsInAsync
)
9878
if (this.
IsInAsync
&& this.CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword)
11412
return (this.IsScript || this.
IsInAsync
) && this.CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword;
11419
if (this.
IsInAsync
)
13763
isInAsyncContext: this.
IsInAsync
|| modifiers.Any((int)SyntaxKind.AsyncKeyword),
13880
isInAsyncContext: this.
IsInAsync
|| modifiers.Any((int)SyntaxKind.AsyncKeyword),
14606
IsInAsync
,
Parser\LanguageParser_InterpolatedString.cs (1)
209
var interpolationNode = ParseInterpolation(this.Options, originalText, interpolation, kind,
IsInAsync
, IsInFieldKeywordContext);