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

attribute_constructor() public method

public attribute_constructor ( ) : Attribute
return Attribute
        public Attribute attribute_constructor()
        {
            Attribute attr = null;
            try
            {
                Token token = this.qname();
                if (base.inputState.guessing == 0)
                {
                    attr = new Attribute(ToLexicalInfo(token), token.getText());
                }
                if ((this.LA(1) == 0x3f) && tokenSet_22_.member(this.LA(2)))
                {
                    this.match(0x3f);
                    switch (this.LA(1))
                    {
                        case 12:
                        case 15:
                        case 0x13:
                        case 0x1b:
                        case 0x1d:
                        case 0x27:
                        case 40:
                        case 0x2a:
                        case 0x2c:
                        case 0x3b:
                        case 60:
                        case 0x3d:
                        case 0x3f:
                        case 0x44:
                        case 0x4f:
                        case 80:
                        case 0x52:
                        case 0x58:
                        case 0x67:
                        case 0x69:
                        case 0x6a:
                        case 0x6b:
                        case 0x6c:
                        case 0x6d:
                            this.attribute_parameter(attr);
                            while (this.LA(1) == 0x43)
                            {
                                this.match(0x43);
                                this.attribute_parameter(attr);
                            }
                            break;

                        case 0x40:
                            break;

                        default:
                            throw new NoViableAltException(this.LT(1), this.getFilename());
                    }
                    this.match(0x40);
                    return attr;
                }
                if (!tokenSet_23_.member(this.LA(1)) || !tokenSet_24_.member(this.LA(2)))
                {
                    throw new NoViableAltException(this.LT(1), this.getFilename());
                }
                return attr;
            }
            catch (RecognitionException exception)
            {
                if (base.inputState.guessing != 0)
                {
                    throw;
                }
                this.reportError(exception);
                this.recover(exception, tokenSet_23_);
                return attr;
            }
            return attr;
        }
UnityScriptParser