115 references to TerminatorState
Microsoft.CodeAnalysis.CSharp (115)
Parser\LanguageParser.cs (109)
32private TerminatorState _termState; // Resettable 92private const int LastTerminatorState = (int)TerminatorState.IsPatternInSwitchExpressionArm; 103switch (_termState & (TerminatorState)i) 105case TerminatorState.IsNamespaceMemberStartOrStop when this.IsNamespaceMemberStartOrStop(): 106case TerminatorState.IsAttributeDeclarationTerminator when this.IsAttributeDeclarationTerminator(): 107case TerminatorState.IsPossibleAggregateClauseStartOrStop when this.IsPossibleAggregateClauseStartOrStop(): 108case TerminatorState.IsPossibleMemberStartOrStop when this.IsPossibleMemberStartOrStop(): 109case TerminatorState.IsEndOfReturnType when this.IsEndOfReturnType(): 110case TerminatorState.IsEndOfParameterList when this.IsEndOfParameterList(): 111case TerminatorState.IsEndOfFieldDeclaration when this.IsEndOfFieldDeclaration(): 112case TerminatorState.IsPossibleEndOfVariableDeclaration when this.IsPossibleEndOfVariableDeclaration(): 113case TerminatorState.IsEndOfTypeArgumentList when this.IsEndOfTypeArgumentList(): 114case TerminatorState.IsPossibleStatementStartOrStop when this.IsPossibleStatementStartOrStop(): 115case TerminatorState.IsEndOfFixedStatement when this.IsEndOfFixedStatement(): 116case TerminatorState.IsEndOfTryBlock when this.IsEndOfTryBlock(): 117case TerminatorState.IsEndOfCatchClause when this.IsEndOfCatchClause(): 118case TerminatorState.IsEndOfFilterClause when this.IsEndOfFilterClause(): 119case TerminatorState.IsEndOfCatchBlock when this.IsEndOfCatchBlock(): 120case TerminatorState.IsEndOfDoWhileExpression when this.IsEndOfDoWhileExpression(): 121case TerminatorState.IsEndOfForStatementArgument when this.IsEndOfForStatementArgument(): 122case TerminatorState.IsEndOfDeclarationClause when this.IsEndOfDeclarationClause(): 123case TerminatorState.IsEndOfArgumentList when this.IsEndOfArgumentList(): 124case TerminatorState.IsSwitchSectionStart when this.IsPossibleSwitchSection(): 125case TerminatorState.IsEndOfTypeParameterList when this.IsEndOfTypeParameterList(): 126case TerminatorState.IsEndOfMethodSignature when this.IsEndOfMethodSignature(): 127case TerminatorState.IsEndOfNameInExplicitInterface when this.IsEndOfNameInExplicitInterface(): 128case TerminatorState.IsEndOfFunctionPointerParameterList when this.IsEndOfFunctionPointerParameterList(errored: false): 129case TerminatorState.IsEndOfFunctionPointerParameterListErrored when this.IsEndOfFunctionPointerParameterList(errored: true): 130case TerminatorState.IsEndOfFunctionPointerCallingConvention when this.IsEndOfFunctionPointerCallingConvention(): 131case TerminatorState.IsEndOfTypeSignature when this.IsEndOfTypeSignature(): 574var saveTerm = _termState; 575_termState |= TerminatorState.IsNamespaceMemberStartOrStop; 1068var saveTerm = _termState; 1069_termState |= TerminatorState.IsAttributeDeclarationTerminator; 1733var outerSaveTerm = _termState; 1734_termState |= TerminatorState.IsEndOfTypeSignature; 1736var saveTerm = _termState; 1737_termState |= TerminatorState.IsPossibleAggregateClauseStartOrStop; 1808var saveTerm2 = _termState; 1809_termState |= TerminatorState.IsPossibleMemberStartOrStop; 2092Debug.Assert((_termState & TerminatorState.IsEndOfTypeSignature) != 0); 2201|| ((_termState & TerminatorState.IsEndOfTypeSignature) != 0 && this.CurrentToken.Kind == SyntaxKind.SemicolonToken) 2527var saveTermState = _termState; 2697var saveTerm = _termState; 2698_termState |= TerminatorState.IsPossibleStatementStartOrStop; // partial statements can abort if a new statement starts 2746var saveTerm = _termState; 2751_termState |= TerminatorState.IsPossibleStatementStartOrStop; 2877var saveTerm = _termState; 2878_termState |= TerminatorState.IsPossibleStatementStartOrStop; // partial statements can abort if a new statement starts 3099var saveTermState = _termState; 3357var saveTerm = _termState; 3358_termState |= TerminatorState.IsEndOfMethodSignature; 3524var saveTerm = _termState; 3525_termState |= TerminatorState.IsEndOfMethodSignature; 3579var saveTerm = _termState; 3580_termState |= TerminatorState.IsEndOfReturnType; 4643var saveTerm = _termState; 4644_termState |= TerminatorState.IsEndOfParameterList; 5060var saveTerm = _termState; 5061_termState |= TerminatorState.IsEndOfFieldDeclaration; 5369TerminatorState saveTerm = _termState; 5429_termState |= TerminatorState.IsPossibleEndOfVariableDeclaration; 5437_termState |= TerminatorState.IsPossibleEndOfVariableDeclaration; 5570var saveTerm = _termState; 5571_termState |= TerminatorState.IsEndOfMethodSignature; 5853var saveTerm = _termState; 5854_termState |= TerminatorState.IsEndOfTypeParameterList; 5913var saveTerm = _termState; 5914_termState = TerminatorState.IsEndOfTypeArgumentList; 6437var saveTerm = _termState; 6438_termState = TerminatorState.IsEndOfTypeArgumentList; 6647var saveTerm = _termState; 6648_termState |= TerminatorState.IsEndOfNameInExplicitInterface; 7167TerminatorState saveTerm; 7191_termState |= TerminatorState.IsEndOfFunctionPointerCallingConvention; 7230_termState |= validStartingToken ? TerminatorState.IsEndOfFunctionPointerParameterList : TerminatorState.IsEndOfFunctionPointerParameterListErrored; 7786var saveTerm = _termState; 7787_termState |= (lessThanToken.IsMissing ? TerminatorState.IsEndOfFunctionPointerParameterListErrored : TerminatorState.IsEndOfFunctionPointerParameterList); 7874var saveTerm = _termState; 7875_termState |= TerminatorState.IsEndOfFunctionPointerCallingConvention; 8486var saveTerm = _termState; 8487_termState |= TerminatorState.IsEndOfFieldDeclaration; 8498var saveTerm = _termState; 8499_termState |= TerminatorState.IsEndOfMethodSignature; 8820var saveTerm = _termState; 8821_termState |= TerminatorState.IsPossibleStatementStartOrStop; // partial statements can abort if a new statement starts 8824_termState |= TerminatorState.IsSwitchSectionStart; 8928var saveTerm = _termState; 8929_termState |= TerminatorState.IsEndOfFixedStatement; 9026var saveTerm = _termState; 9027_termState |= TerminatorState.IsEndOfTryBlock; 9088var saveTerm = _termState; 9094_termState |= TerminatorState.IsEndOfCatchClause; 9124_termState |= TerminatorState.IsEndOfFilterClause; 9133_termState |= TerminatorState.IsEndOfCatchBlock; 9189var saveTerm = _termState; 9190_termState |= TerminatorState.IsEndOfDoWhileExpression; 9247var saveTerm = _termState; 9248_termState |= TerminatorState.IsEndOfForStatementArgument; 10388var saveTerm = _termState; 10389_termState |= TerminatorState.IsEndOfDeclarationClause; 12088var saveTerm = _termState; 12089_termState |= TerminatorState.IsEndOfArgumentList; 13480var saveTerm = _termState; 13481_termState |= TerminatorState.IsEndOfParameterList; 14194internal readonly TerminatorState TerminatorState; 14201TerminatorState terminatorState,
Parser\LanguageParser_Patterns.cs (6)
436var savedState = _termState; 437_termState |= TerminatorState.IsExpressionOrPatternInCaseLabelOfSwitchStatement; 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; 595_termState |= TerminatorState.IsPatternInSwitchExpressionArm;