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

Open

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

  1. added
    bug
    on May 28, 2021
  2. changed the title [-]Binding position range is not same as location[/-] [+]String content range is not same as location[/+] on May 28, 2021
  3. tscpp commented on May 28, 2021

    @tscpp
    OwnerAuthor

    It is actually the other way in import modules. The range is bigger than the location 😂

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions