P4C
The P4 Compiler
Loading...
Searching...
No Matches
P4::Util::Comment Class Referencefinal
Inheritance diagram for P4::Util::Comment:
[legend]

Public Member Functions

 Comment (SourceInfo srcInfo, bool singleLine, cstring body)
 
void dbprint (std::ostream &out) const override
 
SourceInfo getSourceInfo () const override
 Retrieve the source position associated with this comment.
 
cstring toString () const override
 

Member Function Documentation

◆ dbprint()

void P4::Util::Comment::dbprint ( std::ostream & out) const
inlineoverridevirtual

Implements P4::IHasDbPrint.

◆ getSourceInfo()

SourceInfo P4::Util::Comment::getSourceInfo ( ) const
inlinenodiscardoverridevirtual

Retrieve the source position associated with this comment.

Implements P4::Util::IHasSourceInfo.

◆ toString()

cstring P4::Util::Comment::toString ( ) const
inlineoverridevirtual