Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor AstNodeExtensions - use properties with getters #2919

Open
paul-dingemans opened this issue Jan 1, 2025 · 0 comments
Open

Refactor AstNodeExtensions - use properties with getters #2919

paul-dingemans opened this issue Jan 1, 2025 · 0 comments

Comments

@paul-dingemans
Copy link
Collaborator

Most likely we want to define this as property with a getter in AstNodeExtensions:

public val ASTNode.isLeaf: Boolean
   get() = firstChildNode == null

There are many functions defined in ASTNodeExtension which probably could better have been define in similar way. So we can also park this in a separate change.

Originally posted by @paul-dingemans in #2901 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant