Skip to content

Commit

Permalink
Tweaks and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
marsninja committed Sep 16, 2023
1 parent ccbdcee commit 442bb9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion jaclang/jac/passes/blue/ast_build_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ def exit_abstract_ability(self, node: ast.AstNode) -> None:
doc=node.kid[0],
access=node.kid[2],
is_static=node.kid[1],
is_abstract=False,
is_abstract=True,
name_ref=node.kid[3],
body=node.kid[-1]
if isinstance(node.kid[-1], ast.CodeBlock)
Expand Down
11 changes: 5 additions & 6 deletions jaclang/jac/passes/blue/blue_pygen_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,15 +330,16 @@ def exit_base_classes(self, node: ast.BaseClasses) -> None:
def exit_ability(self, node: ast.Ability) -> None:
"""Sub objects.
name: Name,
name_ref: Name | SpecialVarRef | ArchRef,
is_func: bool,
is_async: bool,
is_static: bool,
is_abstract: bool,
doc: Optional[Token],
decorators: Optional["Decorators"],
decorators: Optional[Decorators],
access: Optional[Token],
signature: Optional["FuncSignature | TypeSpec | EventSignature"],
body: Optional["CodeBlock"],
signature: Optional[FuncSignature | TypeSpec | EventSignature],
body: Optional[CodeBlock],
arch_attached: Optional["ArchBlock"] = None,
"""
ability_name = node.py_resolve_name()
Expand Down Expand Up @@ -372,9 +373,7 @@ def exit_ability(self, node: ast.Ability) -> None:
self.indent_level -= 1
self.emit_jac_error_handler(node)
elif node.is_abstract:
self.indent_level += 1
self.emit_ln(node, "pass")
self.indent_level -= 1
else:
self.decl_def_missing(ability_name)
self.indent_level -= 1
Expand Down

0 comments on commit 442bb9f

Please sign in to comment.