Boo.Lang.Parser.BooLexer.mNEWLINE C# (CSharp) Method

mNEWLINE() protected method

protected mNEWLINE ( bool _createToken ) : void
_createToken bool
return void
        protected void mNEWLINE(bool _createToken)
        {
            int _ttype; IToken _token=null; int _begin=text.Length;
            _ttype = NEWLINE;

            {
            switch ( cached_LA1 )
            {
            case '\n':
            {
                match('\n');
                break;
            }
            case '\r':
            {
                {
                    match('\r');
                    {
                        if ((cached_LA1=='\n') && (true) && (true))
                        {
                            match('\n');
                        }
                        else {
                        }

                    }
                }
                break;
            }
            default:
            {
                throw new NoViableAltForCharException(cached_LA1, getFilename(), getLine(), getColumn());
            }
             }
            }
            if (0==inputState.guessing)
            {
            newline();
            }
            if (_createToken && (null == _token) && (_ttype != Token.SKIP))
            {
            _token = makeToken(_ttype);
            _token.setText(text.ToString(_begin, text.Length-_begin));
            }
            returnToken_ = _token;
        }