Skip to content

Commit

Permalink
AST Dump Dot
Browse files Browse the repository at this point in the history
* added feature definition
* related to sealangdotorg/sea#35
  • Loading branch information
ppaulweber committed Mar 3, 2020
1 parent 6b91d27 commit cc998a3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/transform/AstDumpDotPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ class AstDumpDotVisitor final : public RecursiveVisitor
void visit( InvariantDefinition& node ) override;
void visit( ImportDefinition& node ) override;
void visit( StructureDefinition& node ) override;
void visit( FeatureDefinition& node ) override;

void visit( ValueLiteral& node ) override;
void visit( ReferenceLiteral& node ) override;
Expand Down Expand Up @@ -320,17 +321,24 @@ void AstDumpDotVisitor::visit( InvariantDefinition& node )
RecursiveVisitor::visit( node );
}

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

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

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

Expand Down

0 comments on commit cc998a3

Please sign in to comment.