/// <summary> /// Returns a member with the given name /// </summary> public Declaration GetMember(String id) { Declaration d; if ((d = fields.GetDeclaration(id)) != null) { return(d); } if ((d = decls.GetDeclaration(id)) != null) { return(d); } if ((d = properties.GetDeclaration(id)) != null) { return(d); } return(null); }
/// <summary> /// Returns a field with the given name /// </summary> public virtual RecordFieldDeclaration GetField(String id) { return(compTypes.GetDeclaration(id) as RecordFieldDeclaration); }