visitEnclose method
Implementation
@override
String visitEnclose(EncloseNode node) {
final content = node.content
.map((it) => visit(it))
.join(" ")
.collapseSpaces();
final notation = node.notations
.map((it) => _encloseNotationName(it))
.join(", ");
if (notation.trim().isEmpty) {
return "enclosed: $content";
} else {
return "enclosed with $notation: $content";
}
}