Class: OrigenTesters::ATP::Processors::ExtractSetFlags

Inherits:
OrigenTesters::ATP::Processor show all
Defined in:
lib/origen_testers/atp/processors/extract_set_flags.rb

Overview

Extracts all flags which are set within the given flow, returning them in an array

Instance Method Summary collapse

Methods inherited from OrigenTesters::ATP::Processor

#clean_flag, #extract_volatiles, #handler_missing, #process, #process_all, #volatile?, #volatile_flags

Instance Method Details

#on_set_flag(node) ⇒ Object



12
13
14
15
# File 'lib/origen_testers/atp/processors/extract_set_flags.rb', line 12

def on_set_flag(node)
  flag = node.value
  @results << flag
end

#run(nodes) ⇒ Object



6
7
8
9
10
# File 'lib/origen_testers/atp/processors/extract_set_flags.rb', line 6

def run(nodes)
  @results = []
  process_all(nodes)
  @results.uniq
end