-
Notifications
You must be signed in to change notification settings - Fork 6
[Bug]: end offset of AST node is incorrect #39
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
To reproduce:
1
https://ast.sxzz.moe/#eNqrVspRslIqr8jNUdJRKoAydQsSi4pTi4AiyUARQyCdD6Sra5VqAVDcDaY=
Current behavior:
{
"type": "Program",
"body": [
{
"type": "WXText",
"value": "1",
"start": 0,
"end": 0,
"range": [0, 0]
}
],
"comments": [],
"errors": [],
"tokens": [],
"start": 0,
"end": 0,
"range": [0, 0]
}Expected behavior:
{
"type": "Program",
"body": [
{
"type": "WXText",
"value": "1",
"start": 0,
--- "end": 0,
+++ "end": 1,
--- "range": [0, 0]
+++ "range": [0, 1]
}
],
"comments": [],
"errors": [],
"tokens": [],
"start": 0,
--"end": 0,
++"end": 1,
--"range": [0, 0]
++"range": [0, 1]
}Environment information:
@wxml/parserversion:@wxml/parser@0.4.0nodejsversion: N/A
BTW, maybe you can take a look this #38
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working