NVelocity.Runtime.Parser.ParserTokenManager.SwitchTo C# (CSharp) Method

SwitchTo() public method

public SwitchTo ( int lexState ) : void
lexState int
return void
        public void SwitchTo(int lexState)
        {
            if (lexState >= 9 || lexState < 0)
                throw new TokenMgrError(string.Format("Error: Ignoring invalid lexical state : {0}. State unchanged.", lexState),
                                        TokenMgrError.INVALID_LEXICAL_STATE);
            else
                curLexState = lexState;
        }
ParserTokenManager