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

script_or_assembly_attribute() public méthode

public script_or_assembly_attribute ( Module m ) : void
m Module
Résultat void
        public void script_or_assembly_attribute(Module m)
        {
            IToken token = null;
            try
            {
                this.match(0x63);
                token = this.LT(1);
                this.match(0x3b);
                Attribute attribute = this.attribute_constructor();
                if (base.inputState.guessing == 0)
                {
                    string str = token.getText();
                    if (str == "assembly")
                    {
                        m.get_AssemblyAttributes().Add(attribute);
                    }
                    else if (str == "script")
                    {
                        m.get_Attributes().Add(attribute);
                    }
                    else
                    {
                        this.UnexpectedToken(token);
                    }
                }
            }
            catch (RecognitionException exception)
            {
                if (base.inputState.guessing != 0)
                {
                    throw;
                }
                this.reportError(exception);
                this.recover(exception, tokenSet_5_);
            }
        }
UnityScriptParser