#pragma warning restore S1144 // Unused private types or members should be removed private void DiscardToken() { _lookaheadFirst = _lookaheadSecond.Clone(); if (_tokenSequence.Any()) { _lookaheadSecond = _tokenSequence.Pop(); } else { _lookaheadSecond = new MovieToken(TokenType.SequenceTerminator, string.Empty); } }
private void PrepareLookaheads() { _lookaheadFirst = _tokenSequence.Pop(); _lookaheadSecond = _tokenSequence.Pop(); }