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

mWS() public method

public mWS ( bool _createToken ) : void
_createToken bool
return void
        public void mWS(bool _createToken)
        {
            int _ttype; IToken _token=null; int _begin=text.Length;
            _ttype = WS;

            { // ( ... )+
            int _cnt808=0;
            for (;;)
            {
                switch ( cached_LA1 )
                {
                case ' ':
                {
                    match(' ');
                    break;
                }
                case '\t':
                {
                    match('\t');
                    break;
                }
                case '\u000c':
                {
                    match('\f');
                    break;
                }
                case '\n':  case '\r':
                {
                    mNEWLINE(false);
                    break;
                }
                default:
                {
                    if (_cnt808 >= 1) { goto _loop808_breakloop; } else { throw new NoViableAltForCharException(cached_LA1, getFilename(), getLine(), getColumn());; }
                }
                break; }
                _cnt808++;
            }
            _loop808_breakloop:			;
            }    // ( ... )+
            if (0==inputState.guessing)
            {

                    if (SkipWhitespace)
                    {
                        _ttype = Token.SKIP;
                    }

            }
            if (_createToken && (null == _token) && (_ttype != Token.SKIP))
            {
            _token = makeToken(_ttype);
            _token.setText(text.ToString(_begin, text.Length-_begin));
            }
            returnToken_ = _token;
        }