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