class RBS::Resolver::ConstantResolver::Table

Table stores the set of immediate child constants of a module.

table = RBS::ConstantResolver::Table.new(env)

table.children(TypeName.parse("::Object"))                # -> { ... }  Returns a hash of name and constants.
table.children(TypeName.parse("::File::PATH_SEPARATOR"))  # -> nil      Returns nil because the constant is not a module.

table.toplevel                                      # -> { ... }  Returns a hash of top level constants.

The toplevel is incompatible with Ruby. All constants in Ruby are defined under Object, and they are accessed with :: (Colon3) operator. RBS is different. :: constants are toplevel constants, and they are not defined under ::Object.

The behavior is simulated in ConstantResolver.