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)
104switch (_termState & (TerminatorState)i) 575var saveTerm = _termState; 1069var saveTerm = _termState; 1084if (saveTerm == _termState) 1732var outerSaveTerm = _termState; 1735var saveTerm = _termState; 1793var saveTerm2 = _termState; 2058Debug.Assert((_termState & TerminatorState.IsEndOfRecordOrClassOrStructOrInterfaceSignature) != 0); 2167|| ((_termState & TerminatorState.IsEndOfRecordOrClassOrStructOrInterfaceSignature) != 0 && this.CurrentToken.Kind == SyntaxKind.SemicolonToken) 2487var saveTermState = _termState; 2657var saveTerm = _termState; 2706var saveTerm = _termState; 2837var saveTerm = _termState; 3059var saveTermState = _termState; 3307var saveTerm = _termState; 3474var saveTerm = _termState; 3529var saveTerm = _termState; 4592var saveTerm = _termState; 4990var saveTerm = _termState; 5298TerminatorState saveTerm = _termState; 5499var saveTerm = _termState; 5782var saveTerm = _termState; 5842var saveTerm = _termState; 6366var saveTerm = _termState; 6576var saveTerm = _termState; 7119saveTerm = _termState; 7158saveTerm = _termState; 7715var saveTerm = _termState; 7803var saveTerm = _termState; 8415var saveTerm = _termState; 8427var saveTerm = _termState; 8749var saveTerm = _termState; 8857var saveTerm = _termState; 8955var saveTerm = _termState; 9017var saveTerm = _termState; 9118var saveTerm = _termState; 9176var saveTerm = _termState; 10290var saveTerm = _termState; 11937var saveTerm = _termState; 13382var saveTerm = _termState; 14048_termState,
Parser\LanguageParser_Patterns.cs (4)
436var savedState = _termState; 550if (@this._termState.HasFlag(TerminatorState.IsExpressionOrPatternInCaseLabelOfSwitchStatement) && @this.CurrentToken.Kind is SyntaxKind.ColonToken) 559if (@this._termState.HasFlag(TerminatorState.IsPatternInSwitchExpressionArm) && @this.CurrentToken.Kind is SyntaxKind.EqualsGreaterThanToken or SyntaxKind.ColonToken) 594var savedState = _termState;