17#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
22 OS <<
"TextNode: " <<
getText() <<
"\n";
26 OS <<
"InlineCodeNode: " <<
getCode() <<
"\n";
30 OS <<
"EmphasisNode\n";
41#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
46 OS <<
"ParagraphNode\n";
52 OS <<
"HeadingNode: level=" <<
getLevel() <<
"\n";
58 OS <<
"FencedCodeNode: lang=" <<
getLang() <<
"\n" <<
getCode() <<
"\n";
62 OS <<
"ListItemNode\n";
67#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
72 OS <<
"UnorderedListNode\n";
73 for (
const auto &Item :
items())
78 OS <<
"OrderedListNode: start=" <<
getStart() <<
"\n";
79 for (
const auto &Item :
items())
84 OS <<
"BlockQuoteNode\n";
90 OS <<
"ThematicBreakNode\n";
94 OS <<
"DocumentNode\n";
Defines the Markdown AST node hierarchy for the clang-doc Markdown parser.
LLVM_DUMP_METHOD void dump() const
Prints to llvm::errs(). Only available in assert builds.
virtual void print(llvm::raw_ostream &OS) const =0
Recursively prints the node and its children to OS.
void print(llvm::raw_ostream &OS) const override
Recursively prints the node and its children to OS.
void print(llvm::raw_ostream &OS) const override
Recursively prints the node and its children to OS.
void print(llvm::raw_ostream &OS) const override
Recursively prints the node and its children to OS.
llvm::StringRef getCode() const
void print(llvm::raw_ostream &OS) const override
Recursively prints the node and its children to OS.
llvm::StringRef getLang() const
void print(llvm::raw_ostream &OS) const override
Recursively prints the node and its children to OS.
unsigned getLevel() const
llvm::StringRef getCode() const
void print(llvm::raw_ostream &OS) const override
Recursively prints the node and its children to OS.
LLVM_DUMP_METHOD void dump() const
Prints to llvm::errs(). Only available in assert builds.
virtual void print(llvm::raw_ostream &OS) const =0
Recursively prints the node and its children to OS.
void print(llvm::raw_ostream &OS) const
LLVM_DUMP_METHOD void dump() const
Prints to llvm::errs().
void print(llvm::raw_ostream &OS) const override
Recursively prints the node and its children to OS.
unsigned getStart() const
void print(llvm::raw_ostream &OS) const override
Recursively prints the node and its children to OS.
void print(llvm::raw_ostream &OS) const override
Recursively prints the node and its children to OS.
void print(llvm::raw_ostream &OS) const override
Recursively prints the node and its children to OS.
llvm::StringRef getText() const
void print(llvm::raw_ostream &OS) const override
Recursively prints the node and its children to OS.
void print(llvm::raw_ostream &OS) const override
Recursively prints the node and its children to OS.