Skip to content
This repository was archived by the owner on Sep 18, 2026. It is now read-only.
This repository was archived by the owner on Sep 18, 2026. It is now read-only.

String content range is not same as location #271

Description

@tscpp

This applies to all types of strings quoted and double-quoted. I have only found strings in import modules and attributes so far.

The mocha tests are invalid and should be updated too.

<img data-bind="key: value">
[
  {
    loc: {
      first_line: 1,
      last_line: 1,
      first_column: 0,
      last_column: 28,
      range: [0, 28]
    },
    key: 'img',
    nodeType: 2,
    bindings: [
      {
        location: {
          first_line: 1,
          last_line: 1,
          first_column: 15,  // <---
          last_column: 27,   // <---
          range: [16, 26]    // <---
        },
        bindingText: 'key: value'
      }
    ]
  }
]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions