support number to find children #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/support-id"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
should fix https://github.com/lezer-parser/lezer/issues/37
@ -130,10 +130,13 @@ export class NodeType {Since we're going to need to do this
typeofcheck anyway, I'd prefer to also move the initial comparison into the conditional.And please try to use a code style similar to the surrounding code—space after
ifand before the brace, and==instead of===whenever possible.Thanks. I added a comment with two small issues.
@ -130,10 +130,13 @@ export class NodeType {thanks for the review :). Is it better like this ?
@ -130,10 +130,13 @@ export class NodeType {just in case, we can replace the condition
group ? group.indexOf(name) > -1 : falseby justgroup && group.indexOf(name) > -1. It will avoid the ternary condition.I can change it as well if you want
Thanks!