19 writes to IsInAsync
Microsoft.CodeAnalysis.CSharp (19)
Parser\LanguageParser.cs (19)
2182
IsInAsync
= true; // We are implicitly in an async context
2222
IsInAsync
= wasInAsync;
2328
IsInAsync
= true; // We are implicitly in an async context
2335
IsInAsync
= wasInAsync;
2478
IsInAsync
= true; // We are implicitly in an async context
2483
IsInAsync
= wasInAsync;
2506
IsInAsync
= true; // We are implicitly in an async context
2510
IsInAsync
= wasInAsync;
3174
IsInAsync
= modifiers.Any((int)SyntaxKind.AsyncKeyword);
3178
IsInAsync
= false;
7495
IsInAsync
= true;
7497
IsInAsync
= false;
9790
IsInAsync
= false;
9798
IsInAsync
= true;
9860
IsInAsync
= parentScopeIsInAsync;
12272
this.
IsInAsync
= parentScopeIsInAsync;
12280
this.
IsInAsync
= true;
12391
this.
IsInAsync
= parentScopeIsInAsync;
12399
this.
IsInAsync
= true;
18 references to IsInAsync
Microsoft.CodeAnalysis.CSharp (18)
Parser\LanguageParser.cs (18)
415
Debug.Assert(!
IsInAsync
);
1415
Debug.Assert(!
IsInAsync
);
1453
Debug.Assert(!
IsInAsync
);
2144
Debug.Assert(!
IsInAsync
);
2179
bool wasInAsync =
IsInAsync
;
2325
bool wasInAsync =
IsInAsync
;
2477
bool wasInAsync =
IsInAsync
;
2505
bool wasInAsync =
IsInAsync
;
2714
Debug.Assert(!
IsInAsync
);
3172
Debug.Assert(!
IsInAsync
);
5417
if (this.
IsInAsync
&& identifierToken.ContextualKind == SyntaxKind.AwaitKeyword)
7485
!
IsInAsync
)
8825
if (this.
IsInAsync
&& this.CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword)
9789
bool parentScopeIsInAsync =
IsInAsync
;
10215
return (this.IsScript || this.
IsInAsync
) && this.CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword;
10222
if (this.
IsInAsync
)
12270
var parentScopeIsInAsync = this.
IsInAsync
;
12389
var parentScopeIsInAsync = this.
IsInAsync
;