// Any of the array parameters may be null public NamespaceDecl( Identifier idName, // must be non-null UsingDirective [] arUsingDirectives, NamespaceDecl[] arNestedNamespaces, ClassDecl[] arClasses, TypeDeclBase[] arTypes ) { m_idName = idName; m_arUsingDirectives = (arUsingDirectives == null) ? new UsingDirective [0] : arUsingDirectives; m_arNestedNamespaces = (arNestedNamespaces == null) ? new NamespaceDecl[0] : arNestedNamespaces; //m_arClasses = (arClasses == null) ? new ClassDecl[0] : arClasses; Debug.Assert(arClasses == null); m_arTypes = (arTypes == null) ? new TypeDeclBase[0] : arTypes; }
public ProgramDecl(NamespaceDecl [] nGlobal) { Debug.Assert(nGlobal != null); m_nGlobal = nGlobal; }