82 writes to _termState
Microsoft.CodeAnalysis.CSharp (82)
Parser\LanguageParser.cs (78)
575
_termState
|= TerminatorState.IsNamespaceMemberStartOrStop;
769
_termState
= saveTerm;
1077
_termState
|= TerminatorState.IsAttributeDeclarationTerminator;
1104
_termState
= saveTerm;
1742
_termState
|= TerminatorState.IsEndOfTypeSignature;
1745
_termState
|= TerminatorState.IsPossibleAggregateClauseStartOrStop;
1768
_termState
= saveTerm;
1782
_termState
= outerSaveTerm;
1817
_termState
|= TerminatorState.IsPossibleMemberStartOrStop;
1831
_termState
= saveTerm2;
2691
_termState
|= TerminatorState.IsPossibleStatementStartOrStop; // partial statements can abort if a new statement starts
2701
_termState
= saveTerm;
2742
_termState
|= TerminatorState.IsPossibleStatementStartOrStop;
2762
_termState
= saveTerm;
2837
_termState
= saveTermState;
2868
_termState
|= TerminatorState.IsPossibleStatementStartOrStop; // partial statements can abort if a new statement starts
2874
_termState
= saveTerm;
3315
_termState
= saveTermState;
3437
_termState
|= TerminatorState.IsEndOfMethodSignature;
3449
_termState
= saveTerm;
3612
_termState
|= TerminatorState.IsEndOfMethodSignature;
3637
_termState
= saveTerm;
3664
_termState
|= TerminatorState.IsEndOfReturnType;
3666
_termState
= saveTerm;
4787
_termState
|= TerminatorState.IsEndOfParameterList;
4803
_termState
= saveTerm;
5203
_termState
|= TerminatorState.IsEndOfFieldDeclaration;
5219
_termState
= saveTerm;
5571
_termState
|= TerminatorState.IsPossibleEndOfVariableDeclaration;
5573
_termState
= saveTerm;
5579
_termState
|= TerminatorState.IsPossibleEndOfVariableDeclaration;
5581
_termState
= saveTerm;
5713
_termState
|= TerminatorState.IsEndOfMethodSignature;
5725
_termState
= saveTerm;
5996
_termState
|= TerminatorState.IsEndOfTypeParameterList;
6009
_termState
= saveTerm;
6045
_termState
= TerminatorState.IsEndOfTypeArgumentList;
6047
_termState
= saveTerm;
6578
_termState
= TerminatorState.IsEndOfTypeArgumentList;
6580
_termState
= saveTerm;
6788
_termState
|= TerminatorState.IsEndOfNameInExplicitInterface;
6822
_termState
= saveTerm;
7331
_termState
|= TerminatorState.IsEndOfFunctionPointerCallingConvention;
7352
_termState
= saveTerm;
7370
_termState
|= validStartingToken ? TerminatorState.IsEndOfFunctionPointerParameterList : TerminatorState.IsEndOfFunctionPointerParameterListErrored;
7393
_termState
= saveTerm;
7923
_termState
|= (lessThanToken.IsMissing ? TerminatorState.IsEndOfFunctionPointerParameterListErrored : TerminatorState.IsEndOfFunctionPointerParameterList);
7961
_termState
= saveTerm;
8011
_termState
|= TerminatorState.IsEndOfFunctionPointerCallingConvention;
8036
_termState
= saveTerm;
8633
_termState
|= TerminatorState.IsEndOfFieldDeclaration;
8636
_termState
= saveTerm;
8645
_termState
|= TerminatorState.IsEndOfMethodSignature;
8649
_termState
= saveTerm;
9023
_termState
|= TerminatorState.IsPossibleStatementStartOrStop; // partial statements can abort if a new statement starts
9026
_termState
|= TerminatorState.IsSwitchSectionStart;
9057
_termState
= saveTerm;
9149
_termState
|= TerminatorState.IsEndOfFixedStatement;
9151
_termState
= saveTerm;
9247
_termState
|= TerminatorState.IsEndOfTryBlock;
9249
_termState
= saveTerm;
9314
_termState
|= TerminatorState.IsEndOfCatchClause;
9322
_termState
= saveTerm;
9344
_termState
|= TerminatorState.IsEndOfFilterClause;
9348
_termState
= saveTerm;
9353
_termState
|= TerminatorState.IsEndOfCatchBlock;
9355
_termState
= saveTerm;
9410
_termState
|= TerminatorState.IsEndOfDoWhileExpression;
9412
_termState
= saveTerm;
9468
_termState
|= TerminatorState.IsEndOfForStatementArgument;
9501
_termState
= saveTerm;
10609
_termState
|= TerminatorState.IsEndOfDeclarationClause;
10620
_termState
= saveTerm;
12312
_termState
|= TerminatorState.IsEndOfArgumentList;
12355
_termState
= saveTerm;
13691
_termState
|= TerminatorState.IsEndOfParameterList;
13703
_termState
= saveTerm;
14368
_termState
= state.TerminatorState;
Parser\LanguageParser_Patterns.cs (4)
437
_termState
|= TerminatorState.IsExpressionOrPatternInCaseLabelOfSwitchStatement;
439
_termState
= savedState;
595
_termState
|= TerminatorState.IsPatternInSwitchExpressionArm;
597
_termState
= savedState;
45 references to _termState
Microsoft.CodeAnalysis.CSharp (45)
Parser\LanguageParser.cs (41)
103
switch (
_termState
& (TerminatorState)i)
574
var saveTerm =
_termState
;
1076
var saveTerm =
_termState
;
1091
if (saveTerm ==
_termState
)
1741
var outerSaveTerm =
_termState
;
1744
var saveTerm =
_termState
;
1816
var saveTerm2 =
_termState
;
2094
Debug.Assert((
_termState
& TerminatorState.IsEndOfTypeSignature) != 0);
2203
|| ((
_termState
& TerminatorState.IsEndOfTypeSignature) != 0 && this.CurrentToken.Kind == SyntaxKind.SemicolonToken)
2529
var saveTermState =
_termState
;
2690
var saveTerm =
_termState
;
2737
var saveTerm =
_termState
;
2867
var saveTerm =
_termState
;
3175
var saveTermState =
_termState
;
3436
var saveTerm =
_termState
;
3611
var saveTerm =
_termState
;
3663
var saveTerm =
_termState
;
4786
var saveTerm =
_termState
;
5202
var saveTerm =
_termState
;
5511
TerminatorState saveTerm =
_termState
;
5712
var saveTerm =
_termState
;
5995
var saveTerm =
_termState
;
6044
var saveTerm =
_termState
;
6577
var saveTerm =
_termState
;
6787
var saveTerm =
_termState
;
7330
saveTerm =
_termState
;
7369
saveTerm =
_termState
;
7922
var saveTerm =
_termState
;
8010
var saveTerm =
_termState
;
8632
var saveTerm =
_termState
;
8644
var saveTerm =
_termState
;
9022
var saveTerm =
_termState
;
9148
var saveTerm =
_termState
;
9246
var saveTerm =
_termState
;
9308
var saveTerm =
_termState
;
9409
var saveTerm =
_termState
;
9467
var saveTerm =
_termState
;
10608
var saveTerm =
_termState
;
12311
var saveTerm =
_termState
;
13690
var saveTerm =
_termState
;
14360
_termState
,
Parser\LanguageParser_Patterns.cs (4)
436
var savedState =
_termState
;
550
if (@this.
_termState
.HasFlag(TerminatorState.IsExpressionOrPatternInCaseLabelOfSwitchStatement) && @this.CurrentToken.Kind is SyntaxKind.ColonToken)
559
if (@this.
_termState
.HasFlag(TerminatorState.IsPatternInSwitchExpressionArm) && @this.CurrentToken.Kind is SyntaxKind.EqualsGreaterThanToken or SyntaxKind.ColonToken)
594
var savedState =
_termState
;