# encoding: utf-8 # frozen_string_literal: true module Carbon module Compiler module Node # The root node. This is the topmost level node, and includes # all declarations, definitions, and directives. class Root < Base # The "name" of the root. # # @return [Carbon::Concrete::Type] def name @children.select(&:identity?).last[0] end def inspect "#[Module #{name.inspect}]" end end end end end