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

❓ why iterate over 'childtokens'? #26

Open
duncleberg opened this issue Jul 12, 2020 · 0 comments
Open

❓ why iterate over 'childtokens'? #26

duncleberg opened this issue Jul 12, 2020 · 0 comments

Comments

@duncleberg
Copy link

duncleberg commented Jul 12, 2020

I have been going over this piece of code and why it's there? It seems unnecesary? If I delete it everything is exactly the same as if I would let it stay.

      let childOffset = offset;
      for (let i = 0; i < token.content.length; i++) {

const childToken = token.content[i];

processToken(decorations, childToken, childOffset);
}
@duncleberg duncleberg changed the title why iterate over why iterate over 'childtokens'? Jul 12, 2020
@duncleberg duncleberg changed the title why iterate over 'childtokens'? ❓ why iterate over 'childtokens'? Jul 12, 2020
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