Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingbaoyu committed Oct 26, 2024
1 parent 1e87951 commit 5686b19
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const a = {
%%key%%: 1,
[%%key2%%]: 2,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{
"type": "File",
"start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":44}},
"program": {
"type": "Program",
"start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":44}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "VariableDeclaration",
"start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":44}},
"declarations": [
{
"type": "VariableDeclarator",
"start":6,"end":44,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":4,"column":1,"index":44}},
"id": {
"type": "Identifier",
"start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"a"},
"name": "a"
},
"init": {
"type": "ObjectExpression",
"start":10,"end":44,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":4,"column":1,"index":44}},
"properties": [
{
"type": "ObjectProperty",
"start":14,"end":24,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":12,"index":24}},
"method": false,
"key": {
"type": "Placeholder",
"start":14,"end":21,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":9,"index":21}},
"name": {
"type": "Identifier",
"start":16,"end":19,"loc":{"start":{"line":2,"column":4,"index":16},"end":{"line":2,"column":7,"index":19},"identifierName":"key"},
"name": "key"
},
"expectedNode": "Identifier"
},
"computed": false,
"shorthand": false,
"value": {
"type": "NumericLiteral",
"start":23,"end":24,"loc":{"start":{"line":2,"column":11,"index":23},"end":{"line":2,"column":12,"index":24}},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
}
},
{
"type": "ObjectProperty",
"start":28,"end":41,"loc":{"start":{"line":3,"column":2,"index":28},"end":{"line":3,"column":15,"index":41}},
"method": false,
"computed": true,
"key": {
"type": "Placeholder",
"start":29,"end":37,"loc":{"start":{"line":3,"column":3,"index":29},"end":{"line":3,"column":11,"index":37}},
"name": {
"type": "Identifier",
"start":31,"end":35,"loc":{"start":{"line":3,"column":5,"index":31},"end":{"line":3,"column":9,"index":35},"identifierName":"key2"},
"name": "key2"
},
"expectedNode": "Expression"
},
"shorthand": false,
"value": {
"type": "NumericLiteral",
"start":40,"end":41,"loc":{"start":{"line":3,"column":14,"index":40},"end":{"line":3,"column":15,"index":41}},
"extra": {
"rawValue": 2,
"raw": "2"
},
"value": 2
}
}
],
"extra": {
"trailingComma": 41
}
}
}
],
"kind": "const"
}
],
"directives": []
}
}

0 comments on commit 5686b19

Please sign in to comment.