Skip to content

Commit

Permalink
AST Dump Dot
Browse files Browse the repository at this point in the history
* added declaration definition
* related to sealangdotorg/sea#35
  • Loading branch information
ppaulweber committed Jun 10, 2021
1 parent ac322c7 commit 76e61ba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/transform/AstDumpDotPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ class AstDumpDotVisitor final : public RecursiveVisitor
void visit( StructureDefinition& node ) override;
void visit( FeatureDefinition& node ) override;
void visit( ImplementationDefinition& node ) override;
void visit( DeclarationDefinition& node ) override;

void visit( ValueLiteral& node ) override;
void visit( ReferenceLiteral& node ) override;
Expand Down Expand Up @@ -351,6 +352,13 @@ void AstDumpDotVisitor::visit( ImplementationDefinition& node )
RecursiveVisitor::visit( node );
}

void AstDumpDotVisitor::visit( DeclarationDefinition& node )
{
DotLink link( this, &node );
dumpNode( node, "DeclarationDefinition" );
RecursiveVisitor::visit( node );
}

void AstDumpDotVisitor::visit( UndefLiteral& node )
{
DotLink link( this, &node );
Expand Down

0 comments on commit 76e61ba

Please sign in to comment.