Example #1
0
        public ENUMERATOR_DECL find(Identifier name)
        {
            ENUMERATOR_DECL result = null;

            for (int i = 0, n = Length; i < n; i++)
            {
                if (enumerators[i].name.Name == name.Name)
                {
                    result = enumerators[i]; break;
                }
            }
            return(result);
        }
Example #2
0
        public void Add(ENUMERATOR_DECL enumerator)
        {
            int n = this.enumerators.Length;
            int i = this.length++;

            if (i == n)
            {
                ENUMERATOR_DECL[] new_enumerators = new ENUMERATOR_DECL[n + 8];
                for (int j = 0; j < n; j++)
                {
                    new_enumerators[j] = enumerators[j];
                }
                this.enumerators = new_enumerators;
            }
            this.enumerators[i] = enumerator;
        }
Example #3
0
 protected override void Visit_ENUMERATOR_DECL(ENUMERATOR_DECL node)
 {
     /* MOVE CODE HERE */
 }
Example #4
0
 protected virtual void Visit_ENUMERATOR_DECL(ENUMERATOR_DECL node)
 {
 }