Esempio n. 1
0
        internal AbcInstance ImportInstance(string fullname)
        {
            var asm = ApplicationAssembly;

            if (asm != null)
            {
                var instance = AssemblyIndex.FindInstance(asm, fullname);
                if (instance != null)
                {
                    return(ImportInstance(instance));
                }
            }
            return(null);
        }
Esempio n. 2
0
        internal AbcInstance ImportInstance(AbcMultiname name)
        {
            var assembly = ApplicationAssembly;

            if (assembly != null)
            {
                var instance = AssemblyIndex.FindInstance(assembly, name);
                if (instance != null)
                {
                    return(ImportInstance(instance));
                }
            }
            return(null);
        }
Esempio n. 3
0
        internal AbcInstance FindInstance(AbcMultiname name, bool seeExternal)
        {
            if (name == null)
            {
                return(null);
            }
            if (name.IsRuntime)
            {
                return(null);
            }

            AbcInstance instance;

            if (seeExternal)
            {
                var asm = ApplicationAssembly;
                if (asm != null)
                {
                    instance = AssemblyIndex.FindInstance(asm, name);
                    if (instance != null)
                    {
                        return(instance);
                    }
                }
            }

            instance = Instances[name];
            if (instance != null)
            {
                return(instance);
            }

            var pf = PrevFrame;

            if (pf != null)
            {
                Debug.Assert(pf != this);
                instance = pf.FindInstance(name, false);
                if (instance != null)
                {
                    return(instance);
                }
            }

            return(null);
        }
Esempio n. 4
0
 public AbcInstance FindInstanceRef(AbcMultiname name)
 {
     return(AssemblyIndex.FindInstance(AppAssembly, name));
 }