82 writes to _termState
Microsoft.CodeAnalysis.CSharp (82)
Parser\LanguageParser.cs (78)
576
_termState
|= TerminatorState.IsNamespaceMemberStartOrStop;
762
_termState
= saveTerm;
1070
_termState
|= TerminatorState.IsAttributeDeclarationTerminator;
1097
_termState
= saveTerm;
1733
_termState
|= TerminatorState.IsEndOfRecordOrClassOrStructOrInterfaceSignature;
1736
_termState
|= TerminatorState.IsPossibleAggregateClauseStartOrStop;
1745
_termState
= saveTerm;
1759
_termState
= outerSaveTerm;
1794
_termState
|= TerminatorState.IsPossibleMemberStartOrStop;
1808
_termState
= saveTerm2;
2658
_termState
|= TerminatorState.IsPossibleStatementStartOrStop; // partial statements can abort if a new statement starts
2670
_termState
= saveTerm;
2711
_termState
|= TerminatorState.IsPossibleStatementStartOrStop;
2731
_termState
= saveTerm;
2805
_termState
= saveTermState;
2838
_termState
|= TerminatorState.IsPossibleStatementStartOrStop; // partial statements can abort if a new statement starts
2845
_termState
= saveTerm;
3193
_termState
= saveTermState;
3308
_termState
|= TerminatorState.IsEndOfMethodSignature;
3322
_termState
= saveTerm;
3475
_termState
|= TerminatorState.IsEndOfMethodSignature;
3500
_termState
= saveTerm;
3530
_termState
|= TerminatorState.IsEndOfReturnType;
3532
_termState
= saveTerm;
4593
_termState
|= TerminatorState.IsEndOfParameterList;
4605
_termState
= saveTerm;
4991
_termState
|= TerminatorState.IsEndOfFieldDeclaration;
5007
_termState
= saveTerm;
5358
_termState
|= TerminatorState.IsPossibleEndOfVariableDeclaration;
5360
_termState
= saveTerm;
5366
_termState
|= TerminatorState.IsPossibleEndOfVariableDeclaration;
5368
_termState
= saveTerm;
5500
_termState
|= TerminatorState.IsEndOfMethodSignature;
5512
_termState
= saveTerm;
5783
_termState
|= TerminatorState.IsEndOfTypeParameterList;
5796
_termState
= saveTerm;
5843
_termState
= TerminatorState.IsEndOfTypeArgumentList;
5845
_termState
= saveTerm;
6367
_termState
= TerminatorState.IsEndOfTypeArgumentList;
6369
_termState
= saveTerm;
6577
_termState
|= TerminatorState.IsEndOfNameInExplicitInterface;
6611
_termState
= saveTerm;
7120
_termState
|= TerminatorState.IsEndOfFunctionPointerCallingConvention;
7141
_termState
= saveTerm;
7159
_termState
|= validStartingToken ? TerminatorState.IsEndOfFunctionPointerParameterList : TerminatorState.IsEndOfFunctionPointerParameterListErrored;
7182
_termState
= saveTerm;
7716
_termState
|= (lessThanToken.IsMissing ? TerminatorState.IsEndOfFunctionPointerParameterListErrored : TerminatorState.IsEndOfFunctionPointerParameterList);
7754
_termState
= saveTerm;
7804
_termState
|= TerminatorState.IsEndOfFunctionPointerCallingConvention;
7829
_termState
= saveTerm;
8416
_termState
|= TerminatorState.IsEndOfFieldDeclaration;
8419
_termState
= saveTerm;
8428
_termState
|= TerminatorState.IsEndOfMethodSignature;
8432
_termState
= saveTerm;
8750
_termState
|= TerminatorState.IsPossibleStatementStartOrStop; // partial statements can abort if a new statement starts
8753
_termState
|= TerminatorState.IsSwitchSectionStart;
8784
_termState
= saveTerm;
8858
_termState
|= TerminatorState.IsEndOfFixedStatement;
8860
_termState
= saveTerm;
8956
_termState
|= TerminatorState.IsEndOfTryBlock;
8958
_termState
= saveTerm;
9023
_termState
|= TerminatorState.IsEndOfCatchClause;
9031
_termState
= saveTerm;
9053
_termState
|= TerminatorState.IsEndOfFilterClause;
9057
_termState
= saveTerm;
9062
_termState
|= TerminatorState.IsEndOfCatchBlock;
9064
_termState
= saveTerm;
9119
_termState
|= TerminatorState.IsEndOfDoWhileExpression;
9121
_termState
= saveTerm;
9177
_termState
|= TerminatorState.IsEndOfForStatementArgument;
9210
_termState
= saveTerm;
10291
_termState
|= TerminatorState.IsEndOfDeclarationClause;
10302
_termState
= saveTerm;
11938
_termState
|= TerminatorState.IsEndOfArgumentList;
11981
_termState
= saveTerm;
13383
_termState
|= TerminatorState.IsEndOfParameterList;
13395
_termState
= saveTerm;
14056
_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)
104
switch (
_termState
& (TerminatorState)i)
575
var saveTerm =
_termState
;
1069
var saveTerm =
_termState
;
1084
if (saveTerm ==
_termState
)
1732
var outerSaveTerm =
_termState
;
1735
var saveTerm =
_termState
;
1793
var saveTerm2 =
_termState
;
2058
Debug.Assert((
_termState
& TerminatorState.IsEndOfRecordOrClassOrStructOrInterfaceSignature) != 0);
2167
|| ((
_termState
& TerminatorState.IsEndOfRecordOrClassOrStructOrInterfaceSignature) != 0 && this.CurrentToken.Kind == SyntaxKind.SemicolonToken)
2487
var saveTermState =
_termState
;
2657
var saveTerm =
_termState
;
2706
var saveTerm =
_termState
;
2837
var saveTerm =
_termState
;
3059
var saveTermState =
_termState
;
3307
var saveTerm =
_termState
;
3474
var saveTerm =
_termState
;
3529
var saveTerm =
_termState
;
4592
var saveTerm =
_termState
;
4990
var saveTerm =
_termState
;
5298
TerminatorState saveTerm =
_termState
;
5499
var saveTerm =
_termState
;
5782
var saveTerm =
_termState
;
5842
var saveTerm =
_termState
;
6366
var saveTerm =
_termState
;
6576
var saveTerm =
_termState
;
7119
saveTerm =
_termState
;
7158
saveTerm =
_termState
;
7715
var saveTerm =
_termState
;
7803
var saveTerm =
_termState
;
8415
var saveTerm =
_termState
;
8427
var saveTerm =
_termState
;
8749
var saveTerm =
_termState
;
8857
var saveTerm =
_termState
;
8955
var saveTerm =
_termState
;
9017
var saveTerm =
_termState
;
9118
var saveTerm =
_termState
;
9176
var saveTerm =
_termState
;
10290
var saveTerm =
_termState
;
11937
var saveTerm =
_termState
;
13382
var saveTerm =
_termState
;
14048
_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
;