115 references to TerminatorState
Microsoft.CodeAnalysis.CSharp (115)
Parser\LanguageParser.cs (109)
33private TerminatorState _termState; // Resettable 93private const int LastTerminatorState = (int)TerminatorState.IsPatternInSwitchExpressionArm; 104switch (_termState & (TerminatorState)i) 106case TerminatorState.IsNamespaceMemberStartOrStop when this.IsNamespaceMemberStartOrStop(): 107case TerminatorState.IsAttributeDeclarationTerminator when this.IsAttributeDeclarationTerminator(): 108case TerminatorState.IsPossibleAggregateClauseStartOrStop when this.IsPossibleAggregateClauseStartOrStop(): 109case TerminatorState.IsPossibleMemberStartOrStop when this.IsPossibleMemberStartOrStop(): 110case TerminatorState.IsEndOfReturnType when this.IsEndOfReturnType(): 111case TerminatorState.IsEndOfParameterList when this.IsEndOfParameterList(): 112case TerminatorState.IsEndOfFieldDeclaration when this.IsEndOfFieldDeclaration(): 113case TerminatorState.IsPossibleEndOfVariableDeclaration when this.IsPossibleEndOfVariableDeclaration(): 114case TerminatorState.IsEndOfTypeArgumentList when this.IsEndOfTypeArgumentList(): 115case TerminatorState.IsPossibleStatementStartOrStop when this.IsPossibleStatementStartOrStop(): 116case TerminatorState.IsEndOfFixedStatement when this.IsEndOfFixedStatement(): 117case TerminatorState.IsEndOfTryBlock when this.IsEndOfTryBlock(): 118case TerminatorState.IsEndOfCatchClause when this.IsEndOfCatchClause(): 119case TerminatorState.IsEndOfFilterClause when this.IsEndOfFilterClause(): 120case TerminatorState.IsEndOfCatchBlock when this.IsEndOfCatchBlock(): 121case TerminatorState.IsEndOfDoWhileExpression when this.IsEndOfDoWhileExpression(): 122case TerminatorState.IsEndOfForStatementArgument when this.IsEndOfForStatementArgument(): 123case TerminatorState.IsEndOfDeclarationClause when this.IsEndOfDeclarationClause(): 124case TerminatorState.IsEndOfArgumentList when this.IsEndOfArgumentList(): 125case TerminatorState.IsSwitchSectionStart when this.IsPossibleSwitchSection(): 126case TerminatorState.IsEndOfTypeParameterList when this.IsEndOfTypeParameterList(): 127case TerminatorState.IsEndOfMethodSignature when this.IsEndOfMethodSignature(): 128case TerminatorState.IsEndOfNameInExplicitInterface when this.IsEndOfNameInExplicitInterface(): 129case TerminatorState.IsEndOfFunctionPointerParameterList when this.IsEndOfFunctionPointerParameterList(errored: false): 130case TerminatorState.IsEndOfFunctionPointerParameterListErrored when this.IsEndOfFunctionPointerParameterList(errored: true): 131case TerminatorState.IsEndOfFunctionPointerCallingConvention when this.IsEndOfFunctionPointerCallingConvention(): 132case TerminatorState.IsEndOfRecordOrClassOrStructOrInterfaceSignature when this.IsEndOfRecordOrClassOrStructOrInterfaceSignature(): 575var saveTerm = _termState; 576_termState |= TerminatorState.IsNamespaceMemberStartOrStop; 1069var saveTerm = _termState; 1070_termState |= TerminatorState.IsAttributeDeclarationTerminator; 1732var outerSaveTerm = _termState; 1733_termState |= TerminatorState.IsEndOfRecordOrClassOrStructOrInterfaceSignature; 1735var saveTerm = _termState; 1736_termState |= TerminatorState.IsPossibleAggregateClauseStartOrStop; 1793var saveTerm2 = _termState; 1794_termState |= TerminatorState.IsPossibleMemberStartOrStop; 2058Debug.Assert((_termState & TerminatorState.IsEndOfRecordOrClassOrStructOrInterfaceSignature) != 0); 2167|| ((_termState & TerminatorState.IsEndOfRecordOrClassOrStructOrInterfaceSignature) != 0 && this.CurrentToken.Kind == SyntaxKind.SemicolonToken) 2487var saveTermState = _termState; 2657var saveTerm = _termState; 2658_termState |= TerminatorState.IsPossibleStatementStartOrStop; // partial statements can abort if a new statement starts 2706var saveTerm = _termState; 2711_termState |= TerminatorState.IsPossibleStatementStartOrStop; 2837var saveTerm = _termState; 2838_termState |= TerminatorState.IsPossibleStatementStartOrStop; // partial statements can abort if a new statement starts 3059var saveTermState = _termState; 3307var saveTerm = _termState; 3308_termState |= TerminatorState.IsEndOfMethodSignature; 3474var saveTerm = _termState; 3475_termState |= TerminatorState.IsEndOfMethodSignature; 3529var saveTerm = _termState; 3530_termState |= TerminatorState.IsEndOfReturnType; 4592var saveTerm = _termState; 4593_termState |= TerminatorState.IsEndOfParameterList; 4990var saveTerm = _termState; 4991_termState |= TerminatorState.IsEndOfFieldDeclaration; 5298TerminatorState saveTerm = _termState; 5358_termState |= TerminatorState.IsPossibleEndOfVariableDeclaration; 5366_termState |= TerminatorState.IsPossibleEndOfVariableDeclaration; 5499var saveTerm = _termState; 5500_termState |= TerminatorState.IsEndOfMethodSignature; 5782var saveTerm = _termState; 5783_termState |= TerminatorState.IsEndOfTypeParameterList; 5842var saveTerm = _termState; 5843_termState = TerminatorState.IsEndOfTypeArgumentList; 6366var saveTerm = _termState; 6367_termState = TerminatorState.IsEndOfTypeArgumentList; 6576var saveTerm = _termState; 6577_termState |= TerminatorState.IsEndOfNameInExplicitInterface; 7096TerminatorState saveTerm; 7120_termState |= TerminatorState.IsEndOfFunctionPointerCallingConvention; 7159_termState |= validStartingToken ? TerminatorState.IsEndOfFunctionPointerParameterList : TerminatorState.IsEndOfFunctionPointerParameterListErrored; 7715var saveTerm = _termState; 7716_termState |= (lessThanToken.IsMissing ? TerminatorState.IsEndOfFunctionPointerParameterListErrored : TerminatorState.IsEndOfFunctionPointerParameterList); 7803var saveTerm = _termState; 7804_termState |= TerminatorState.IsEndOfFunctionPointerCallingConvention; 8415var saveTerm = _termState; 8416_termState |= TerminatorState.IsEndOfFieldDeclaration; 8427var saveTerm = _termState; 8428_termState |= TerminatorState.IsEndOfMethodSignature; 8749var saveTerm = _termState; 8750_termState |= TerminatorState.IsPossibleStatementStartOrStop; // partial statements can abort if a new statement starts 8753_termState |= TerminatorState.IsSwitchSectionStart; 8857var saveTerm = _termState; 8858_termState |= TerminatorState.IsEndOfFixedStatement; 8955var saveTerm = _termState; 8956_termState |= TerminatorState.IsEndOfTryBlock; 9017var saveTerm = _termState; 9023_termState |= TerminatorState.IsEndOfCatchClause; 9053_termState |= TerminatorState.IsEndOfFilterClause; 9062_termState |= TerminatorState.IsEndOfCatchBlock; 9118var saveTerm = _termState; 9119_termState |= TerminatorState.IsEndOfDoWhileExpression; 9176var saveTerm = _termState; 9177_termState |= TerminatorState.IsEndOfForStatementArgument; 10291var saveTerm = _termState; 10292_termState |= TerminatorState.IsEndOfDeclarationClause; 11938var saveTerm = _termState; 11939_termState |= TerminatorState.IsEndOfArgumentList; 13383var saveTerm = _termState; 13384_termState |= TerminatorState.IsEndOfParameterList; 14097internal readonly TerminatorState TerminatorState; 14104TerminatorState 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;