class AdLint::Ld::MapTypedefPhase

Public Class Methods

new(phase_ctxt) click to toggle source
Calls superclass method AdLint::Ld::LdPhase::new
# File lib/adlint/ld/phase.rb, line 49
def initialize(phase_ctxt)
  super(phase_ctxt, "mtd")
end

Private Instance Methods

do_execute(phase_ctxt, monitor) click to toggle source
# File lib/adlint/ld/phase.rb, line 54
def do_execute(phase_ctxt, monitor)
  mapper = TypedefMapper.new
  phase_ctxt[:metric_fpaths].each do |fpath|
    mapper.execute(fpath)
    monitor.progress += 1.0 / phase_ctxt[:metric_fpaths].size
  end
  phase_ctxt[:ld_typedef_map] = mapper.map
end