Skip to content

VOnExpression location error #81

Closed
@mudi-1125

Description

@mudi-1125

Hi!

Recently I've been using the vue-eslint-parser to analyze the vue file. I found that when VExpressionContainer. expression is VOnExpression , the range of expression mybe error.

For example:
codesandbox url: https://codesandbox.io/s/agitated-bush-hdvn0?file=/src/index.js

For the file code1.vue, the range of test('something') is [28,45]. This is correct.
But for the file code2.vue, the range of test('something') is [29,46]. There is an 1 offset error.

image

I hope you can fix the problem. Thank you very much

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions