Esempio n. 1
0
 /// <summary>
 /// Creates an root declarative region containing the Standard library.
 /// </summary>
 public RootDeclarativeRegion()
 {
     libraries = VhdlCollections.CreateNamedEntityList <LibraryDeclarativeRegion>(this);
     //libraries.Add(Libraries.STD);
     //libraries.Add(Libraries.IEEE);
     scope         = Scopes.createScope(this, libraries, new UseClauseResolvable(this));
     internalScope = Scopes.createScope(this, libraries);
 }
        /// <summary>
        /// Creates a library declarative region.
        /// </summary>
        /// <param name="identifier">the identifier of the library</param>
        public LibraryDeclarativeRegion(string identifier)
        {
            files = ParentSetList <VhdlFile> .Create(this);

            resolvable      = new ResolvableImpl(this);
            scope           = Scopes.createScope(this, resolvable);
            this.identifier = identifier;
        }
Esempio n. 3
0
 public VhdlFile()
 {
     elements = VhdlCollections.CreateNamedEntityList <LibraryUnit>(this);
     scope    = Scopes.createScope(this, elements);
 }