VBF.Compilers.Scanners.Scanner.IsLastTokenSkippable C# (CSharp) Method

IsLastTokenSkippable() private method

private IsLastTokenSkippable ( ) : bool
return bool
        private bool IsLastTokenSkippable()
        {
            int acceptTokenIndex = m_scannerInfo.GetTokenIndex(m_lastState);

            if (acceptTokenIndex < 0 && RecoverErrors)
            {
                //eat one char to continue
                m_lexemeValueBuilder.Append((char)m_source.ReadChar());

                if (ErrorList != null)
                {
                    ErrorList.AddError(LexicalErrorId, new SourceSpan(m_lastTokenStart, m_source.Location), m_lexemeValueBuilder.ToString());
                }

                return true;
            }

            return acceptTokenIndex >= 0 && m_tokenAttributes[acceptTokenIndex] == c_skip;
        }