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

import_directive() public method

public import_directive ( Module container ) : void
container Module
return void
        public void import_directive(Module container)
        {
            IToken token = null;
            try
            {
                token = this.LT(1);
                this.match(0x16);
                Token token2 = this.qname();
                this.eos();
                if (base.inputState.guessing == 0)
                {
                    container.get_Imports().Add(new Import(ToLexicalInfo(token), new ReferenceExpression(ToLexicalInfo(token2), token2.getText())));
                }
            }
            catch (RecognitionException exception)
            {
                if (base.inputState.guessing != 0)
                {
                    throw;
                }
                this.reportError(exception);
                this.recover(exception, tokenSet_5_);
            }
        }
UnityScriptParser