writeOpenNamespace method
void
writeOpenNamespace(
- CppOptions generatorOptions,
- Root root,
- Indent indent, {
- required String dartPackageName,
override
Writes code to indent
that opens file namespace if needed.
This method is not required, and does not need to be overridden.
Implementation
@override
void writeOpenNamespace(
CppOptions generatorOptions,
Root root,
Indent indent, {
required String dartPackageName,
}) {
if (generatorOptions.namespace != null) {
indent.writeln('namespace ${generatorOptions.namespace} {');
}
}