internal OperandLexerState GetState() { // m_currentToken オブジェクトは内容が書き換わらないので、参照のみ保存する。 ReadBufferState bufferState = m_buffer.GetState(); return(new OperandLexerState(m_currentToken, bufferState)); }
internal OperandLexerState(Token currentToken, ReadBufferState bufferState) { m_currentToken = currentToken; m_readBufferState = bufferState; }
internal void SetState(ReadBufferState state) { m_currentIndex = state.CurrentIndex; }