EvaluateAsWrappedNamespace() private method

private EvaluateAsWrappedNamespace ( bool giveErrorIfNameInUse ) : WrappedNamespace
giveErrorIfNameInUse bool
return WrappedNamespace
Esempio n. 1
0
        internal Package(string name, AST id, ASTList classList, Context context) : base(context)
        {
            this.name        = name;
            this.classList   = classList;
            this.scope       = (PackageScope)base.Globals.ScopeStack.Peek();
            this.scope.owner = this;
            base.Engine.AddPackage(this.scope);
            Lookup lookup = id as Lookup;

            if (lookup != null)
            {
                lookup.EvaluateAsWrappedNamespace(true);
            }
            else
            {
                Member member = id as Member;
                if (member != null)
                {
                    member.EvaluateAsWrappedNamespace(true);
                }
            }
        }
Esempio n. 2
0
        internal Package(String name, AST id, ASTList classList, Context context)
            : base(context)
        {
            this.name        = name;
            this.classList   = classList;
            this.scope       = (PackageScope)Globals.ScopeStack.Peek();
            this.scope.owner = this;
            this.Engine.AddPackage(this.scope);
            Lookup simpleId = id as Lookup;

            if (simpleId != null)
            {
                simpleId.EvaluateAsWrappedNamespace(true);
            }
            else
            {
                Member qualifiedId = id as Member;
                if (qualifiedId != null)
                {
                    qualifiedId.EvaluateAsWrappedNamespace(true);
                }
            }
        }