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); }
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); }