82 writes to _termState
Microsoft.CodeAnalysis.CSharp (82)
Parser\LanguageParser.cs (78)
575
_termState
|= TerminatorState.IsNamespaceMemberStartOrStop;
761
_termState
= saveTerm;
1069
_termState
|= TerminatorState.IsAttributeDeclarationTerminator;
1096
_termState
= saveTerm;
1732
_termState
|= TerminatorState.IsEndOfRecordOrClassOrStructOrInterfaceSignature;
1735
_termState
|= TerminatorState.IsPossibleAggregateClauseStartOrStop;
1744
_termState
= saveTerm;
1758
_termState
= outerSaveTerm;
1793
_termState
|= TerminatorState.IsPossibleMemberStartOrStop;
1807
_termState
= saveTerm2;
2657
_termState
|= TerminatorState.IsPossibleStatementStartOrStop; // partial statements can abort if a new statement starts
2669
_termState
= saveTerm;
2710
_termState
|= TerminatorState.IsPossibleStatementStartOrStop;
2730
_termState
= saveTerm;
2804
_termState
= saveTermState;
2837
_termState
|= TerminatorState.IsPossibleStatementStartOrStop; // partial statements can abort if a new statement starts
2844
_termState
= saveTerm;
3192
_termState
= saveTermState;
3307
_termState
|= TerminatorState.IsEndOfMethodSignature;
3321
_termState
= saveTerm;
3474
_termState
|= TerminatorState.IsEndOfMethodSignature;
3499
_termState
= saveTerm;
3529
_termState
|= TerminatorState.IsEndOfReturnType;
3531
_termState
= saveTerm;
4592
_termState
|= TerminatorState.IsEndOfParameterList;
4604
_termState
= saveTerm;
4993
_termState
|= TerminatorState.IsEndOfFieldDeclaration;
5009
_termState
= saveTerm;
5360
_termState
|= TerminatorState.IsPossibleEndOfVariableDeclaration;
5362
_termState
= saveTerm;
5368
_termState
|= TerminatorState.IsPossibleEndOfVariableDeclaration;
5370
_termState
= saveTerm;
5502
_termState
|= TerminatorState.IsEndOfMethodSignature;
5514
_termState
= saveTerm;
5785
_termState
|= TerminatorState.IsEndOfTypeParameterList;
5798
_termState
= saveTerm;
5845
_termState
= TerminatorState.IsEndOfTypeArgumentList;
5847
_termState
= saveTerm;
6369
_termState
= TerminatorState.IsEndOfTypeArgumentList;
6371
_termState
= saveTerm;
6579
_termState
|= TerminatorState.IsEndOfNameInExplicitInterface;
6613
_termState
= saveTerm;
7122
_termState
|= TerminatorState.IsEndOfFunctionPointerCallingConvention;
7143
_termState
= saveTerm;
7161
_termState
|= validStartingToken ? TerminatorState.IsEndOfFunctionPointerParameterList : TerminatorState.IsEndOfFunctionPointerParameterListErrored;
7184
_termState
= saveTerm;
7718
_termState
|= (lessThanToken.IsMissing ? TerminatorState.IsEndOfFunctionPointerParameterListErrored : TerminatorState.IsEndOfFunctionPointerParameterList);
7756
_termState
= saveTerm;
7806
_termState
|= TerminatorState.IsEndOfFunctionPointerCallingConvention;
7831
_termState
= saveTerm;
8418
_termState
|= TerminatorState.IsEndOfFieldDeclaration;
8421
_termState
= saveTerm;
8430
_termState
|= TerminatorState.IsEndOfMethodSignature;
8434
_termState
= saveTerm;
8752
_termState
|= TerminatorState.IsPossibleStatementStartOrStop; // partial statements can abort if a new statement starts
8755
_termState
|= TerminatorState.IsSwitchSectionStart;
8786
_termState
= saveTerm;
8860
_termState
|= TerminatorState.IsEndOfFixedStatement;
8862
_termState
= saveTerm;
8958
_termState
|= TerminatorState.IsEndOfTryBlock;
8960
_termState
= saveTerm;
9025
_termState
|= TerminatorState.IsEndOfCatchClause;
9033
_termState
= saveTerm;
9055
_termState
|= TerminatorState.IsEndOfFilterClause;
9059
_termState
= saveTerm;
9064
_termState
|= TerminatorState.IsEndOfCatchBlock;
9066
_termState
= saveTerm;
9121
_termState
|= TerminatorState.IsEndOfDoWhileExpression;
9123
_termState
= saveTerm;
9179
_termState
|= TerminatorState.IsEndOfForStatementArgument;
9212
_termState
= saveTerm;
10320
_termState
|= TerminatorState.IsEndOfDeclarationClause;
10331
_termState
= saveTerm;
11967
_termState
|= TerminatorState.IsEndOfArgumentList;
12010
_termState
= saveTerm;
13359
_termState
|= TerminatorState.IsEndOfParameterList;
13371
_termState
= saveTerm;
14032
_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
;
1068
var saveTerm =
_termState
;
1083
if (saveTerm ==
_termState
)
1731
var outerSaveTerm =
_termState
;
1734
var saveTerm =
_termState
;
1792
var saveTerm2 =
_termState
;
2057
Debug.Assert((
_termState
& TerminatorState.IsEndOfRecordOrClassOrStructOrInterfaceSignature) != 0);
2166
|| ((
_termState
& TerminatorState.IsEndOfRecordOrClassOrStructOrInterfaceSignature) != 0 && this.CurrentToken.Kind == SyntaxKind.SemicolonToken)
2486
var saveTermState =
_termState
;
2656
var saveTerm =
_termState
;
2705
var saveTerm =
_termState
;
2836
var saveTerm =
_termState
;
3058
var saveTermState =
_termState
;
3306
var saveTerm =
_termState
;
3473
var saveTerm =
_termState
;
3528
var saveTerm =
_termState
;
4591
var saveTerm =
_termState
;
4992
var saveTerm =
_termState
;
5300
TerminatorState saveTerm =
_termState
;
5501
var saveTerm =
_termState
;
5784
var saveTerm =
_termState
;
5844
var saveTerm =
_termState
;
6368
var saveTerm =
_termState
;
6578
var saveTerm =
_termState
;
7121
saveTerm =
_termState
;
7160
saveTerm =
_termState
;
7717
var saveTerm =
_termState
;
7805
var saveTerm =
_termState
;
8417
var saveTerm =
_termState
;
8429
var saveTerm =
_termState
;
8751
var saveTerm =
_termState
;
8859
var saveTerm =
_termState
;
8957
var saveTerm =
_termState
;
9019
var saveTerm =
_termState
;
9120
var saveTerm =
_termState
;
9178
var saveTerm =
_termState
;
10319
var saveTerm =
_termState
;
11966
var saveTerm =
_termState
;
13358
var saveTerm =
_termState
;
14024
_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
;