Coverage Summary for Class: HighlightTextContentNodeRenderer (io.heapy.kotmark.ext.highlight.internal)

Class Class, % Method, % Branch, % Line, % Instruction, %
HighlightTextContentNodeRenderer 100% (1/1) 100% (2/2) 100% (2/2) 100% (7/7) 100% (20/20)


 package io.heapy.kotmark.ext.highlight.internal
 
 import io.heapy.kotmark.node.Node
 import io.heapy.kotmark.renderer.text.TextContentNodeRendererContext
 
 class HighlightTextContentNodeRenderer(
     private val context: TextContentNodeRendererContext,
 ) : HighlightNodeRenderer() {
     override fun render(node: Node) {
         var child = node.firstChild
         while (child != null) {
             val next = child.next
             context.render(child)
             child = next
         }
     }
 }