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); }
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; }
protected override void Visit_ENUMERATOR_DECL(ENUMERATOR_DECL node) { /* MOVE CODE HERE */ }
protected virtual void Visit_ENUMERATOR_DECL(ENUMERATOR_DECL node) { }