code: public List<ARecordDeclIR> getRecords(SClassDeclIR definingClass)
  	{
  		List<ARecordDeclIR> records = new LinkedList<ARecordDeclIR>();
  
  		for (ATypeDeclIR typeDecl : definingClass.getTypeDecls())
  		{
  			SDeclIR decl = typeDecl.getDecl();
  
  			if (!(decl instanceof ARecordDeclIR))
  			{
  				continue;
  			}
  
  			ARecordDeclIR recordDecl = (ARecordDeclIR) decl;
  
  			records.add(recordDecl);
  		}
  
  		return records;
  	}
docs: This method assumes that the record is defined in definingClass and not a super class