visitIncludeDirective method

  1. @override
void visitIncludeDirective(
  1. IncludeDirective node, [
  2. bool topLevel = true
])
override

Added optional newLine for handling @include at top-level vs/ inside of a declaration group.

Implementation

@override
void visitIncludeDirective(IncludeDirective node, [bool topLevel = true]) {
  if (topLevel) _emitLf();
  emit('@include ${node.name}');
  _emitSemicolon(forceLf: true);
}