# encoding: utf-8 # frozen_string_literal: true module Carbon module Compiler module Node class EType < Base class Option < Base def expand(file) children.map do |child| # child.is_a?(Node::EType) # => true if child.clean? type = child.to_type last = type.name.parts.last { last => type.name.parts } else child.expand(file, false) end end.inject(:merge) end end end end end end