Skip to content

Commit

Permalink
Recursive Visitor
Browse files Browse the repository at this point in the history
* added missing attributes visiting calls for the new structure,
  feature, implementation and declaration definitions
* related to sealangdotorg/sea#35
  • Loading branch information
ppaulweber committed Jul 31, 2017
1 parent 43ff05d commit 73a3732
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ast/RecursiveVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,26 +82,30 @@ void RecursiveVisitor::visit( StructureDefinition& node )
{
node.identifier()->accept( *this );
node.functions()->accept( *this );
node.attributes()->accept( *this );
}

void RecursiveVisitor::visit( FeatureDefinition& node )
{
node.identifier()->accept( *this );
node.definitions()->accept( *this );
node.attributes()->accept( *this );
}

void RecursiveVisitor::visit( ImplementationDefinition& node )
{
node.identifier()->accept( *this );
node.type()->accept( *this );
node.definitions()->accept( *this );
node.attributes()->accept( *this );
}

void RecursiveVisitor::visit( DeclarationDefinition& node )
{
node.identifier()->accept( *this );
node.argumentTypes()->accept( *this );
node.returnType()->accept( *this );
node.attributes()->accept( *this );
}

void RecursiveVisitor::visit( ValueAtom& node )
Expand Down

0 comments on commit 73a3732

Please sign in to comment.