Skip to content

❓ why iterate over 'childtokens'? #26

@duncleberg

Description

@duncleberg

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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions