visitPageDirective method

  1. @override
void visitPageDirective(
  1. PageDirective node
)
override

@page : pseudoPage { decls }

Implementation

@override
void visitPageDirective(PageDirective node) {
  emit('@page');
  if (node.hasIdent || node.hasPseudoPage) {
    if (node.hasIdent) emit(' ');
    emit(node._ident!);
    emit(node.hasPseudoPage ? ':${node._pseudoPage}' : '');
  }

  var declsMargin = node._declsMargin;
  var declsMarginLength = declsMargin.length;
  emit(_sp);
  _emitLBrace();
  for (var i = 0; i < declsMarginLength; i++) {
    declsMargin[i].visit(this);
  }
  _emitRBrace();
}