Skip to content

Commit

Permalink
Still exploring
Browse files Browse the repository at this point in the history
  • Loading branch information
blakef committed Oct 28, 2024
1 parent 2c51f7e commit a6d5874
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/rn-tester/strip.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,19 @@ def parse_protocol(node, depth):
l(depth, f'🔬 [PROTOCOL][{node.spelling}] ({node.kind})');
for child in node.get_children():
l(depth+1, f'<{child.kind}> ')
dump(child, depth+1)
# dump(child, depth+1)

def parse_interface(node, depth):
"""
Show protocol descriptions
"""
l(depth, f'🔬 [PROTOCOL][{node.spelling}] ({node.kind})');
for child in node.get_children():
l(depth+1, f'<{child.kind}> → {child.spelling}')
dump(child, depth+1)
l(depth, f'@interface {node.displayname} -> {len(list(node.get_arguments()))}')
dump(node.type, depth+1)
# ! get_arguments, get_tokens
#for child in node.get_tokens():
# l(depth+1, f'<{child.kind}> → {child.spelling}')
# dump(child, depth+1)

def dump(node, depth):
"""Dump debugging information about a node"""
Expand Down

0 comments on commit a6d5874

Please sign in to comment.