Skip to content

Commit

Permalink
Make all TreeWalkerBase methods virtual.
Browse files Browse the repository at this point in the history
  • Loading branch information
GGG-KILLER authored Mar 3, 2021
1 parent 377389b commit cffc04c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Loretta/Parsing/Visitor/TreeWalkerBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public virtual void VisitAssignment ( AssignmentStatement node )
/// cref="CompoundAssignmentStatement.ValueExpression" /> by default.
/// </summary>
/// <param name="node">The compound assignment statement to walk into.</param>
public void VisitCompoundAssignmentStatement ( CompoundAssignmentStatement node )
public virtual void VisitCompoundAssignmentStatement ( CompoundAssignmentStatement node )
{
this.VisitNode ( node.Assignee );
this.VisitNode ( node.ValueExpression );
Expand Down Expand Up @@ -383,8 +383,8 @@ public virtual void VisitWhileLoop ( WhileLoopStatement node )
/// Walks into an empty statement. Does nothing by default.
/// </summary>
/// <param name="emptyStatement">The empty statement to walk into.</param>
public void VisitEmptyStatement ( EmptyStatement emptyStatement )
public virtual void VisitEmptyStatement ( EmptyStatement emptyStatement )
{
}
}
}
}

0 comments on commit cffc04c

Please sign in to comment.