Пример #1
0
        public DEFINITION_DECL find(DEFINITION_DECL def)
        {
            DEFINITION_DECL result = null;

            for (int i = 0, n = Length; i < n; i++)
            {
                if (definitions[i] == def)
                {
                    result = definitions[i]; break;
                }
            }
            return(result);
        }
Пример #2
0
        public DEFINITION_DECL find(Identifier name)
        {
            DEFINITION_DECL result = null;

            for (int i = 0, n = Length; i < n; i++)
            {
                if (definitions[i].name.Name == name.Name)
                {
                    result = definitions[i]; break;
                }
            }
            return(result);
        }
Пример #3
0
        public void Add(DEFINITION_DECL definition)
        {
            int n = this.definitions.Length;
            int i = this.length++;

            if (i == n)
            {
                DEFINITION_DECL[] new_definitions = new DEFINITION_DECL[n + 8];
                for (int j = 0; j < n; j++)
                {
                    new_definitions[j] = definitions[j];
                }
                this.definitions = new_definitions;
            }
            this.definitions[i] = definition;
        }
Пример #4
0
 protected override void Visit_DEFINITION_DECL(DEFINITION_DECL node)
 {
     /* MOVE CODE HERE */
 }
Пример #5
0
 protected virtual void Visit_DEFINITION_DECL(DEFINITION_DECL node)
 {
 }