示例#1
0
        internal OperandLexerState GetState()
        {
            // m_currentToken オブジェクトは内容が書き換わらないので、参照のみ保存する。
            ReadBufferState bufferState = m_buffer.GetState();

            return(new OperandLexerState(m_currentToken, bufferState));
        }
示例#2
0
 internal OperandLexerState(Token currentToken, ReadBufferState bufferState)
 {
     m_currentToken    = currentToken;
     m_readBufferState = bufferState;
 }
示例#3
0
 internal void SetState(ReadBufferState state)
 {
     m_currentIndex = state.CurrentIndex;
 }