コード例 #1
0
        public static NamespaceDeclList CreateAndDeclareRecursively(IdContainer Container)
        {
            var Ret = new NamespaceDeclList();

            if (Container.State.Language.NamespaceDeclRecognizer != null)
            {
                if (!CreateAndDeclareRecursively(Container, Ret))
                {
                    return(null);
                }

                if (!Ret.Resolve())
                {
                    return(null);
                }
            }

            return(Ret);
        }
コード例 #2
0
        public static NamespaceDeclList Create(NamespaceScope Scope)
        {
            var Ret = new NamespaceDeclList();
            var Rec = Scope.State.Language.NamespaceDeclRecognizer;

            if (Rec != null)
            {
                if (!Rec.Recognize(Scope, Ret))
                {
                    return(null);
                }
                if (!Ret.Resolve())
                {
                    return(null);
                }
            }

            return(Ret);
        }