Class: Mudguard::Domain::SourceProcessor

Inherits:
Object
  • Object
show all
Defined in:
lib/mudguard/domain/source_processor.rb

Overview

Processes the interesting parts of the Ast and forwards selected nodes to the visitors

Instance Method Summary collapse

Constructor Details

#initialize(location:) ⇒ SourceProcessor

Returns a new instance of SourceProcessor.



7
8
9
# File 'lib/mudguard/domain/source_processor.rb', line 7

def initialize(location:)
  @location = location
end

Instance Method Details

#process(node, visitor) ⇒ Object



11
12
13
# File 'lib/mudguard/domain/source_processor.rb', line 11

def process(node, visitor)
  process_node(node, visitor, "")
end