Skip to content

Commit

Permalink
Create Public Initializer for DebugVisitor (#153)
Browse files Browse the repository at this point in the history
I updated DebugVisitor. I added a public initializer to allow
DebugVisitor to be used by applications that consume the Down framework
for generating debug output from Markdown ASTs.
  • Loading branch information
mfcollins3 authored and iwasrobbed committed Jun 12, 2019
1 parent 6d63c13 commit 5f54bc0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/AST/Visitors/DebugVisitor.swift
Expand Up @@ -18,6 +18,8 @@ public class DebugVisitor {
private var indent: String {
return String(repeating: " ", count: depth)
}

public init() {}

/// Debug representation of node.
private func report(_ node: Node) -> String {
Expand Down

0 comments on commit 5f54bc0

Please sign in to comment.