class Spoom::FileTree::CollectStrictnesses

A visitor that collects the strictness of each node in a tree

def initialize(context)

def initialize(context)
  super()
  @context = context
  @strictnesses = T.let({}, T::Hash[Node, T.nilable(String)])
end

def visit_node(node)

def visit_node(node)
  path = node.path
  @strictnesses[node] = @context.read_file_strictness(path) if @context.file?(path)
  super
end