22 writes to IsInAsync
Microsoft.CodeAnalysis.CSharp (22)
Parser\LanguageParser.cs (22)
2558
IsInAsync
= true; // We are implicitly in an async context
2599
IsInAsync
= wasInAsync;
2705
IsInAsync
= true; // We are implicitly in an async context
2712
IsInAsync
= wasInAsync;
2855
IsInAsync
= true; // We are implicitly in an async context
2860
IsInAsync
= wasInAsync;
2883
IsInAsync
= true; // We are implicitly in an async context
2887
IsInAsync
= wasInAsync;
3579
IsInAsync
= modifiers.Any((int)SyntaxKind.AsyncKeyword);
3583
IsInAsync
= false;
4218
_parser.
IsInAsync
= isInAsync;
4223
_parser.
IsInAsync
= _previousInAsync;
8236
IsInAsync
= true;
8238
IsInAsync
= false;
10717
IsInAsync
= false;
10725
IsInAsync
= true;
10787
IsInAsync
= parentScopeIsInAsync;
13455
this.
IsInAsync
= parentScopeIsInAsync;
13464
this.
IsInAsync
= true;
13581
this.
IsInAsync
= parentScopeIsInAsync;
13590
this.
IsInAsync
= true;
14324
IsInAsync
= state.IsInAsync;
21 references to IsInAsync
Microsoft.CodeAnalysis.CSharp (21)
Parser\LanguageParser.cs (20)
570
Debug.Assert(!
IsInAsync
);
1697
Debug.Assert(!
IsInAsync
);
1733
Debug.Assert(!
IsInAsync
);
2520
Debug.Assert(!
IsInAsync
);
2555
bool wasInAsync =
IsInAsync
;
2702
bool wasInAsync =
IsInAsync
;
2854
bool wasInAsync =
IsInAsync
;
2882
bool wasInAsync =
IsInAsync
;
3098
Debug.Assert(!
IsInAsync
);
3577
Debug.Assert(!
IsInAsync
);
4217
_previousInAsync = parser.
IsInAsync
;
5877
if (this.
IsInAsync
&& identifierToken.ContextualKind == SyntaxKind.AwaitKeyword)
8226
!
IsInAsync
)
9644
if (this.
IsInAsync
&& this.CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword)
10716
bool parentScopeIsInAsync =
IsInAsync
;
11144
return (this.IsScript || this.
IsInAsync
) && this.CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword;
11151
if (this.
IsInAsync
)
13447
var parentScopeIsInAsync = this.
IsInAsync
;
13573
var parentScopeIsInAsync = this.
IsInAsync
;
14316
IsInAsync
,
Parser\LanguageParser_InterpolatedString.cs (1)
107
var interpolationNode = ParseInterpolation(this.Options, originalText, interpolation, kind, IsInFieldKeywordContext,
IsInAsync
);