clang-tools 23.0.0git
clang::doc::markdown::TextNode Class Reference

A plain text run. More...

#include <Markdown.h>

Inheritance diagram for clang::doc::markdown::TextNode:
[legend]

Public Member Functions

 TextNode (llvm::StringRef T)
llvm::StringRef getText () const
void print (llvm::raw_ostream &OS) const override
 Recursively prints the node and its children to OS.
Public Member Functions inherited from clang::doc::markdown::InlineNode
 InlineNode (NodeKind K)
virtual ~InlineNode ()=default
NodeKind getKind () const
LLVM_DUMP_METHOD void dump () const
 Prints to llvm::errs(). Only available in assert builds.

Static Public Member Functions

static bool classof (const InlineNode *N)

Detailed Description

A plain text run.

Definition at line 70 of file Markdown.h.

Constructor & Destructor Documentation

◆ TextNode()

clang::doc::markdown::TextNode::TextNode ( llvm::StringRef T)
inlineexplicit

Member Function Documentation

◆ classof()

bool clang::doc::markdown::TextNode::classof ( const InlineNode * N)
inlinestatic

◆ getText()

llvm::StringRef clang::doc::markdown::TextNode::getText ( ) const
inline

Definition at line 74 of file Markdown.h.

Referenced by print().

◆ print()

void clang::doc::markdown::TextNode::print ( llvm::raw_ostream & OS) const
overridevirtual

Recursively prints the node and its children to OS.

Implements clang::doc::markdown::InlineNode.

Definition at line 21 of file Markdown.cpp.

References getText().


The documentation for this class was generated from the following files: