Loading...
Searching...
No Matches
by::graphVisitor Class Reference

AST graph visualization visitor. More...

#include <graphVisitor.hpp>

Inheritance diagram for by::graphVisitor:
by::visitor by::tworker< void, node >

Public Member Functions

nbool onVisit (const visitInfo &i, node &visitee, nbool alreadyVisited) override
 
void onLeave (const visitInfo &i, node &visitee, nbool alreadyVisited) override
 
nbool onVisit (const visitInfo &i, obj &obj, nbool alreadyVisited) override
 
nbool onVisit (const visitInfo &i, baseFunc &fun, nbool alreadyVisited) override
 
nbool onVisit (const visitInfo &i, func &fun, nbool alreadyVisited) override
 
nbool onVisit (const visitInfo &i, defNestedFuncExpr &e, nbool alreadyVisited) override
 
nbool onVisit (const visitInfo &i, genericOrigin &o, nbool alreadyVisited) override
 
nbool onVisit (const visitInfo &i, getExpr &e, nbool alreadyVisited) override
 
nbool onVisit (const visitInfo &i, evalExpr &e, nbool alreadyVisited) override
 
nbool onVisit (const visitInfo &i, FBOExpr &e, nbool alreadyVisited) override
 
nbool onVisit (const visitInfo &i, FUOExpr &e, nbool alreadyVisited) override
 
nbool onVisit (const visitInfo &i, assignExpr &e, nbool alreadyVisited) override
 
nbool onVisit (const visitInfo &i, defVarExpr &e, nbool alreadyVisited) override
 
nbool onVisit (const visitInfo &i, nInt &e, nbool alreadyVisited) override
 
nbool onVisit (const visitInfo &i, nFlt &e, nbool alreadyVisited) override
 
nbool onVisit (const visitInfo &i, nStr &e, nbool alreadyVisited) override
 
nbool onVisit (const visitInfo &i, nByte &e, nbool alreadyVisited) override
 
nbool onVisit (const visitInfo &i, nBool &e, nbool alreadyVisited) override
 
me & setShowData (nbool showData)
 
nbool isShowData () const
 
- Public Member Functions inherited from by::visitor
 visitor (nbool isReturnable)
 
void setReturnable (nbool isReturnable)
 
nbool isReturnable () const
 
virtual void visit (const visitInfo &i, node &me)
 
virtual void onTraverse (const visitInfo &i, node &me)
 
virtual void onTraverse (const visitInfo &i, asExpr &a)
 
virtual void onTraverse (const visitInfo &i, assignExpr &a)
 
virtual void onTraverse (const visitInfo &i, blockExpr &b)
 
virtual void onTraverse (const visitInfo &i, defVarExpr &d)
 
virtual void onTraverse (const visitInfo &i, FBOExpr &f)
 
virtual void onTraverse (const visitInfo &i, getExpr &e)
 
virtual void onTraverse (const visitInfo &i, retExpr &b)
 
virtual void onTraverse (const visitInfo &i, evalExpr &e)
 
virtual void onTraverse (evalExpr &e, node &subject)
 
virtual void onTraverse (const visitInfo &i, func &f)
 
virtual void onTraverse (const visitInfo &i, frame &f)
 
virtual void onTraverse (const visitInfo &i, forExpr &f)
 
virtual void onTraverse (const visitInfo &i, retStateExpr &r)
 
virtual void onTraverse (const visitInfo &i, ifExpr &f)
 
virtual void onTraverse (const visitInfo &i, whileExpr &w)
 
virtual void onTraverse (const visitInfo &i, defArrayExpr &d)
 
virtual void onTraverse (const visitInfo &i, defNestedFuncExpr &e)
 
virtual void onTraverse (const visitInfo &i, genericOrigin &g)
 
virtual void onTraverse (const visitInfo &i, obj &o)
 
- Public Member Functions inherited from by::tworker< void, node >
 tworker (const errReport &rpt)
 
errReportgetReport ()
 
const errReportgetReport () const BY_CONST_FUNC(getReport()) me &setReport(errReport &rpt)
 
me & setFlag (nint newFlag)
 
me & addFlag (nint flag)
 
me & delFlag (nint clear)
 
nbool isFlag (nint flag) const
 
nint getFlag () const
 
me & setTask (const node &root)
 
me & setTask (const node *it) BY_SIDE_FUNC(it
 
nodegetTask ()
 
const nodegetTask () const BY_CONST_FUNC(getTask()) virtual void rel()
 
void work ()
 
const areagetArea () const BY_CONST_FUNC(_getArea()) nbool isOk() const
 

Protected Member Functions

void _onWork () override
 
- Protected Member Functions inherited from by::visitor
void _onWork () override
 
void _prepare () override
 Protected virtual method for preparation before starting the work.
 
- Protected Member Functions inherited from by::tworker< void, node >
void _report (baseErr *e)
 
virtual void _onEndWork ()
 Protected virtual method called after the work is completed.
 
area_getArea ()
 
void _onEndErrReport (const errReport &rpt) const
 

Additional Inherited Members

- Public Types inherited from by::tworker< void, node >
enum  logFlag
 
- Public Attributes inherited from by::tworker< void, node >
me setTask it
 
me setTask * this
 

Detailed Description

AST graph visualization visitor.

An AST logging class based on visitor that logs all detailed information while traversing the given root node as task. Used by interpreter in debug builds, output when a crash occurs by defaultSigZone, or flag is set by logStructureFlag to make interpreter or starter use graphVisitor.

Member Function Documentation

◆ _onWork()

void by::graphVisitor::_onWork ( )
overrideprotectedvirtual

◆ onLeave()

void by::graphVisitor::onLeave ( const visitInfo & i,
node & visitee,
nbool alreadyVisited )
overridevirtual

Reimplemented from by::visitor.

◆ onVisit()

nbool by::graphVisitor::onVisit ( const visitInfo & i,
node & visitee,
nbool alreadyVisited )
overridevirtual

Reimplemented from by::visitor.


The documentation for this class was generated from the following file:
to Top