Ejemplo n.º 1
0
        public IMPORT_DECL find(IMPORT_DECL import)
        {
            IMPORT_DECL result = null;

            for (int i = 0, n = Length; i < n; i++)
            {
                if (imports[i] == import)
                {
                    result = imports[i]; break;
                }
            }
            return(result);
        }
Ejemplo n.º 2
0
        public IMPORT_DECL find(Identifier name)
        {
            IMPORT_DECL result = null;

            for (int i = 0, n = Length; i < n; i++)
            {
                if (imports[i].name.Name == name.Name)
                {
                    result = imports[i]; break;
                }
            }
            return(result);
        }
Ejemplo n.º 3
0
        public void Add(IMPORT_DECL import)
        {
            int n = this.imports.Length;
            int i = this.length++;

            if (i == n)
            {
                IMPORT_DECL[] newImports = new IMPORT_DECL[n + 8];
                for (int j = 0; j < n; j++)
                {
                    newImports[j] = imports[j];
                }
                this.imports = newImports;
            }
            this.imports[i] = import;
        }
Ejemplo n.º 4
0
 protected override void Visit_IMPORT_DECL(IMPORT_DECL node)
 {
     /* MOVE CODE HERE */
 }
Ejemplo n.º 5
0
 protected virtual void Visit_IMPORT_DECL(IMPORT_DECL node)
 {
 }