class AdLint::Ld::TypedefMapper
Attributes
map[R]
Public Class Methods
new()
click to toggle source
# File lib/adlint/ld/typedef.rb, line 85 def initialize @map = TypedefMap.new end
Public Instance Methods
execute(met_fpath)
click to toggle source
# File lib/adlint/ld/typedef.rb, line 91 def execute(met_fpath) sma_wd = Pathname.pwd CSV.foreach(met_fpath) do |csv_row| if rec = MetricRecord.of(csv_row, sma_wd) case when rec.version? sma_wd = Pathname.new(rec.exec_working_directory) when rec.typedef_declaration? @map.add(Typedef.new(rec.type_name, rec.location)) end end end end