3 writes to IsInAsync
Microsoft.CodeAnalysis.CSharp (3)
Parser\LanguageParser.cs (3)
4364
_parser.
IsInAsync
= isInAsyncContext ?? parser.IsInAsync;
4372
_parser.
IsInAsync
= (_previousState & LanguageParserState.IsInAsync) != 0;
14610
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
);
1770
Debug.Assert(!
IsInAsync
);
1806
Debug.Assert(!
IsInAsync
);
2603
Debug.Assert(!
IsInAsync
);
2640
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
);
4359
(parser.
IsInAsync
? LanguageParserState.IsInAsync : 0) |
4364
_parser.IsInAsync = isInAsyncContext ?? parser.
IsInAsync
;
6090
if (this.
IsInAsync
&& identifierToken.ContextualKind == SyntaxKind.AwaitKeyword)
8432
!
IsInAsync
)
9861
if (this.
IsInAsync
&& this.CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword)
11397
return (this.IsScript || this.
IsInAsync
) && this.CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword;
11404
if (this.
IsInAsync
)
13759
isInAsyncContext: this.
IsInAsync
|| modifiers.Any((int)SyntaxKind.AsyncKeyword),
13876
isInAsyncContext: this.
IsInAsync
|| modifiers.Any((int)SyntaxKind.AsyncKeyword),
14602
IsInAsync
,