UnityScript.Parser.UnityScriptParser.eos C# (CSharp) Method

eos() public method

public eos ( ) : IToken
return IToken
        public IToken eos()
        {
            IToken token = null;
            IToken token2 = null;
            try
            {
                if ((this.LA(1) == 0x4d) && tokenSet_27_.member(this.LA(2)))
                {
                    int num = 0;
                    while (true)
                    {
                        if ((this.LA(1) == 0x4d) && tokenSet_27_.member(this.LA(2)))
                        {
                            token2 = this.LT(1);
                            this.match(0x4d);
                            if ((base.inputState.guessing == 0) && (token == null))
                            {
                                token = token2;
                            }
                        }
                        else
                        {
                            if (num < 1)
                            {
                                throw new NoViableAltException(this.LT(1), this.getFilename());
                            }
                            return token;
                        }
                        num++;
                    }
                }
                if (!tokenSet_27_.member(this.LA(1)) || !tokenSet_28_.member(this.LA(2)))
                {
                    throw new NoViableAltException(this.LT(1), this.getFilename());
                }
                if (base.inputState.guessing == 0)
                {
                    this.SemicolonExpected();
                }
                return token;
            }
            catch (RecognitionException exception)
            {
                if (base.inputState.guessing != 0)
                {
                    throw;
                }
                this.reportError(exception);
                this.recover(exception, tokenSet_27_);
                return token;
            }
            return token;
        }
UnityScriptParser