Defined in header <cparse/Generator.hh>
virtual void openNamespaceScope() noexcept = 0;
Push a name onto namespaceNameContainer and emit the language-specific scope-opener text (namespace X { for C++, module X for others). The name to push comes from the subclass — from its grammar-driven state, from a constructor argument, from a member.
Parameters
None.
Return value
(none)
Exceptions
Marked noexcept. Implementations should not throw — the base class relies on this for exception safety around the stack.
Notes
The base is = 0 because the emission format is language-specific. See Generator › Notes for a representative C++ implementation.
See also
- Generator::closeNamespaceScope — the paired pop.
- Generator::getNamespacePath — read the current stack as a path.

