3 writes to IsInAsync
Microsoft.CodeAnalysis.CSharp (3)
Parser\LanguageParser.cs (3)
4327
_parser.
IsInAsync
= isInAsyncContext ?? parser.IsInAsync;
4335
_parser.
IsInAsync
= (_previousState & LanguageParserState.IsInAsync) != 0;
14564
IsInAsync
= state.IsInAsync;
19 references to IsInAsync
Microsoft.CodeAnalysis.CSharp (19)
Parser\LanguageParser.cs (18)
570
Debug.Assert(!
IsInAsync
);
1722
Debug.Assert(!
IsInAsync
);
1758
Debug.Assert(!
IsInAsync
);
2562
Debug.Assert(!
IsInAsync
);
2598
using var _ = new ParserSyntaxContextResetter(this, isInAsyncContext: this.
IsInAsync
|| !IsScript);
2736
using var _ = new ParserSyntaxContextResetter(this, isInAsyncContext: this.
IsInAsync
|| !IsScript);
3206
Debug.Assert(!
IsInAsync
);
3684
Debug.Assert(!
IsInAsync
);
4322
(parser.
IsInAsync
? LanguageParserState.IsInAsync : 0) |
4327
_parser.IsInAsync = isInAsyncContext ?? parser.
IsInAsync
;
6074
if (this.
IsInAsync
&& identifierToken.ContextualKind == SyntaxKind.AwaitKeyword)
8421
!
IsInAsync
)
9832
if (this.
IsInAsync
&& this.CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword)
11362
return (this.IsScript || this.
IsInAsync
) && this.CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword;
11369
if (this.
IsInAsync
)
13713
isInAsyncContext: this.
IsInAsync
|| modifiers.Any((int)SyntaxKind.AsyncKeyword),
13830
isInAsyncContext: this.
IsInAsync
|| modifiers.Any((int)SyntaxKind.AsyncKeyword),
14556
IsInAsync
,
Parser\LanguageParser_InterpolatedString.cs (1)
209
var interpolationNode = ParseInterpolation(this.Options, originalText, interpolation, kind,
IsInAsync
, IsInFieldKeywordContext);