Skip to content

Commit f2dbc2b

Browse files
author
Marco Paolini
committed
Clarify visitor method documentation
1 parent fbbd739 commit f2dbc2b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.rst

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ Then you can start parsing by creating your custom visitor class:
4141
4242
def visit_field(self, node):
4343
print('start field %s visit' % node)
44+
# Return 1 to keep visiting children, 0 to skip them
45+
return 1
4446
4547
def end_visit_field(self, node):
4648
print('end field %s visit' % node)

0 commit comments

Comments
 (0)