UnityScript.Parser.UnityScriptParser.module_member_modifiers C# (CSharp) Méthode

module_member_modifiers() public méthode

public module_member_modifiers ( ) : TypeMemberModifiers
Résultat TypeMemberModifiers
        public TypeMemberModifiers module_member_modifiers()
        {
            TypeMemberModifiers modifiers = new TypeMemberModifiers();
            IToken token = null;
            modifiers = 0;
            try
            {
                int num;
            Label_0011:
                num = this.LA(1);
                switch (num)
                {
                    case 0x10:
                        this.match(0x10);
                        if (base.inputState.guessing == 0)
                        {
                            modifiers |= 0x40;
                        }
                        goto Label_0011;

                    case 0x1f:
                        this.match(0x1f);
                        if (base.inputState.guessing == 0)
                        {
                            modifiers |= 8;
                        }
                        goto Label_0011;

                    case 0x24:
                        this.match(0x24);
                        if (base.inputState.guessing == 0)
                        {
                            modifiers |= 1;
                        }
                        goto Label_0011;

                    case 0x20:
                        this.match(0x20);
                        if (base.inputState.guessing == 0)
                        {
                            modifiers |= 4;
                        }
                        goto Label_0011;

                    case 0x21:
                        this.match(0x21);
                        if (base.inputState.guessing == 0)
                        {
                            modifiers |= 2;
                        }
                        goto Label_0011;

                    case 0x26:
                        this.match(0x26);
                        if (base.inputState.guessing == 0)
                        {
                            modifiers |= 0x20;
                        }
                        goto Label_0011;
                }
                if (num != 0x2e)
                {
                    return modifiers;
                }
                token = this.LT(1);
                this.match(0x2e);
                if (base.inputState.guessing == 0)
                {
                    this.VirtualKeywordHasNoEffect(token);
                }
                goto Label_0011;
            }
            catch (RecognitionException exception)
            {
                if (base.inputState.guessing != 0)
                {
                    throw;
                }
                this.reportError(exception);
                this.recover(exception, tokenSet_26_);
                return modifiers;
            }
            return modifiers;
        }
UnityScriptParser