Add extra.raw back to JSXText and JSXAttribute (#344)
This commit is contained in:
committed by
Daniel Tschinder
parent
14b7f50e51
commit
cbf4203237
5
test/fixtures/jsx/basic/11/expected.json
vendored
5
test/fixtures/jsx/basic/11/expected.json
vendored
@@ -135,7 +135,10 @@
|
||||
"column": 18
|
||||
}
|
||||
},
|
||||
"extra": null,
|
||||
"extra": {
|
||||
"rawValue": "@test content",
|
||||
"raw": "@test content"
|
||||
},
|
||||
"value": "@test content"
|
||||
}
|
||||
]
|
||||
|
||||
5
test/fixtures/jsx/basic/12/expected.json
vendored
5
test/fixtures/jsx/basic/12/expected.json
vendored
@@ -185,7 +185,10 @@
|
||||
"column": 35
|
||||
}
|
||||
},
|
||||
"extra": null,
|
||||
"extra": {
|
||||
"rawValue": "7x invalid-js-identifier",
|
||||
"raw": "7x invalid-js-identifier"
|
||||
},
|
||||
"value": "7x invalid-js-identifier"
|
||||
}
|
||||
]
|
||||
|
||||
11
test/fixtures/jsx/basic/13/expected.json
vendored
11
test/fixtures/jsx/basic/13/expected.json
vendored
@@ -149,8 +149,7 @@
|
||||
"selfClosing": true
|
||||
},
|
||||
"closingElement": null,
|
||||
"children": [],
|
||||
"extra": null
|
||||
"children": []
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -276,11 +275,13 @@
|
||||
"column": 50
|
||||
}
|
||||
},
|
||||
"extra": null,
|
||||
"extra": {
|
||||
"rawValue": "monkeys /> gorillas",
|
||||
"raw": "monkeys /> gorillas"
|
||||
},
|
||||
"value": "monkeys /> gorillas"
|
||||
}
|
||||
],
|
||||
"extra": null
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
5
test/fixtures/jsx/basic/18/expected.json
vendored
5
test/fixtures/jsx/basic/18/expected.json
vendored
@@ -147,7 +147,10 @@
|
||||
"column": 32
|
||||
}
|
||||
},
|
||||
"extra": null,
|
||||
"extra": {
|
||||
"rawValue": "attribute",
|
||||
"raw": "\"attribute\""
|
||||
},
|
||||
"value": "attribute"
|
||||
}
|
||||
}
|
||||
|
||||
10
test/fixtures/jsx/basic/19/expected.json
vendored
10
test/fixtures/jsx/basic/19/expected.json
vendored
@@ -115,7 +115,10 @@
|
||||
"column": 18
|
||||
}
|
||||
},
|
||||
"extra": null,
|
||||
"extra": {
|
||||
"rawValue": "leading",
|
||||
"raw": "\"leading\""
|
||||
},
|
||||
"value": "leading"
|
||||
}
|
||||
},
|
||||
@@ -163,7 +166,10 @@
|
||||
"column": 35
|
||||
}
|
||||
},
|
||||
"extra": null,
|
||||
"extra": {
|
||||
"rawValue": "attribute",
|
||||
"raw": "\"attribute\""
|
||||
},
|
||||
"value": "attribute"
|
||||
}
|
||||
},
|
||||
|
||||
5
test/fixtures/jsx/basic/21/expected.json
vendored
5
test/fixtures/jsx/basic/21/expected.json
vendored
@@ -168,7 +168,10 @@
|
||||
"column": 13
|
||||
}
|
||||
},
|
||||
"extra": null,
|
||||
"extra": {
|
||||
"rawValue": " ",
|
||||
"raw": " "
|
||||
},
|
||||
"value": " "
|
||||
},
|
||||
{
|
||||
|
||||
15
test/fixtures/jsx/basic/3/expected.json
vendored
15
test/fixtures/jsx/basic/3/expected.json
vendored
@@ -146,7 +146,10 @@
|
||||
"column": 14
|
||||
}
|
||||
},
|
||||
"extra": null,
|
||||
"extra": {
|
||||
"rawValue": "bar",
|
||||
"raw": "\"bar\""
|
||||
},
|
||||
"value": "bar"
|
||||
}
|
||||
}
|
||||
@@ -215,7 +218,10 @@
|
||||
"column": 16
|
||||
}
|
||||
},
|
||||
"extra": null,
|
||||
"extra": {
|
||||
"rawValue": " ",
|
||||
"raw": " "
|
||||
},
|
||||
"value": " "
|
||||
},
|
||||
{
|
||||
@@ -264,7 +270,10 @@
|
||||
"column": 24
|
||||
}
|
||||
},
|
||||
"extra": null,
|
||||
"extra": {
|
||||
"rawValue": " ",
|
||||
"raw": " "
|
||||
},
|
||||
"value": " "
|
||||
},
|
||||
{
|
||||
|
||||
15
test/fixtures/jsx/basic/4/expected.json
vendored
15
test/fixtures/jsx/basic/4/expected.json
vendored
@@ -181,7 +181,10 @@
|
||||
"column": 16
|
||||
}
|
||||
},
|
||||
"extra": null,
|
||||
"extra": {
|
||||
"rawValue": " ",
|
||||
"raw": "\" \""
|
||||
},
|
||||
"value": " "
|
||||
}
|
||||
},
|
||||
@@ -229,7 +232,10 @@
|
||||
"column": 26
|
||||
}
|
||||
},
|
||||
"extra": null,
|
||||
"extra": {
|
||||
"rawValue": "&",
|
||||
"raw": "\"&\""
|
||||
},
|
||||
"value": "&"
|
||||
}
|
||||
},
|
||||
@@ -277,7 +283,10 @@
|
||||
"column": 37
|
||||
}
|
||||
},
|
||||
"extra": null,
|
||||
"extra": {
|
||||
"rawValue": "&r;",
|
||||
"raw": "\"&r;\""
|
||||
},
|
||||
"value": "&r;"
|
||||
}
|
||||
}
|
||||
|
||||
10
test/fixtures/jsx/basic/7/expected.json
vendored
10
test/fixtures/jsx/basic/7/expected.json
vendored
@@ -115,7 +115,10 @@
|
||||
"column": 22
|
||||
}
|
||||
},
|
||||
"extra": null,
|
||||
"extra": {
|
||||
"rawValue": "&&",
|
||||
"raw": "\"&&\""
|
||||
},
|
||||
"value": "&&"
|
||||
}
|
||||
}
|
||||
@@ -184,7 +187,10 @@
|
||||
"column": 0
|
||||
}
|
||||
},
|
||||
"extra": null,
|
||||
"extra": {
|
||||
"rawValue": "\nbar\nbaz\n",
|
||||
"raw": "\nbar\nbaz\n"
|
||||
},
|
||||
"value": "\nbar\nbaz\n"
|
||||
}
|
||||
]
|
||||
|
||||
5
test/fixtures/jsx/basic/entity/expected.json
vendored
5
test/fixtures/jsx/basic/entity/expected.json
vendored
@@ -135,7 +135,10 @@
|
||||
"column": 12
|
||||
}
|
||||
},
|
||||
"extra": null,
|
||||
"extra": {
|
||||
"rawValue": "💩",
|
||||
"raw": "💩"
|
||||
},
|
||||
"value": "💩"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -135,7 +135,10 @@
|
||||
"column": 11
|
||||
}
|
||||
},
|
||||
"extra": null,
|
||||
"extra": {
|
||||
"rawValue": "f4a9;",
|
||||
"raw": "f4a9;"
|
||||
},
|
||||
"value": "f4a9;"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -135,7 +135,10 @@
|
||||
"column": 12
|
||||
}
|
||||
},
|
||||
"extra": null,
|
||||
"extra": {
|
||||
"rawValue": "g4q9;",
|
||||
"raw": "g4q9;"
|
||||
},
|
||||
"value": "g4q9;"
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user