Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #564 from Jaseci-Labs/formatter_fix
Browse files Browse the repository at this point in the history
Formatter: convert all enter to exit functions
  • Loading branch information
marsninja authored Aug 13, 2024
2 parents 89f10e6 + 5b95e2c commit c7bc501
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jaclang/compiler/passes/tool/jac_formatter_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -2420,7 +2420,7 @@ def exit_name(self, node: ast.Name) -> None:
"""
self.emit(node, f"<>{node.value}" if node.is_kwesc else node.value)

def enter_float(self, node: ast.Float) -> None:
def exit_float(self, node: ast.Float) -> None:
"""Sub objects.
name: str,
Expand All @@ -2433,7 +2433,7 @@ def enter_float(self, node: ast.Float) -> None:
"""
self.emit(node, node.value)

def enter_int(self, node: ast.Int) -> None:
def exit_int(self, node: ast.Int) -> None:
"""Sub objects.
name: str,
Expand All @@ -2446,7 +2446,7 @@ def enter_int(self, node: ast.Int) -> None:
"""
self.emit(node, node.value)

def enter_string(self, node: ast.String) -> None:
def exit_string(self, node: ast.String) -> None:
"""Sub objects.
name: str,
Expand Down Expand Up @@ -2483,7 +2483,7 @@ def enter_string(self, node: ast.String) -> None:
else:
self.emit(node, node.value)

def enter_bool(self, node: ast.Bool) -> None:
def exit_bool(self, node: ast.Bool) -> None:
"""Sub objects.
name: str,
Expand Down

0 comments on commit c7bc501

Please sign in to comment.