Scans a .dat file and returns every set or param declaration in the
original order they appear. Each entry keeps the parsed metadata while adding
kind (the keyword used in the file), order (1-based position), and the
raw declaration lines for reference. This avoids re-grouping declarations
into sets/mappings/parameters buckets.
