Skip to content

Commit

Permalink
Xtensa+autosync: fix QualifiedIdentifier
Browse files Browse the repository at this point in the history
  • Loading branch information
imbillow committed Jun 27, 2024
1 parent 7b180db commit 9638970
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,8 @@ def get_patch(self, captures: [(Node, str)], src: bytes, **kwargs) -> bytes:
namespace = b""
identifier = captures[0][0].named_children[0]
identifier = get_text(src, identifier.start_byte, identifier.end_byte)
return namespace + b"_" + identifier
match (namespace, identifier):
case (b"std", b"size"):
return b"sizeof"
case _:
return namespace + b"_" + identifier

0 comments on commit 9638970

Please sign in to comment.