Skip to content

Commit 45b3204

Browse files
committed
Fix: rename raw → rawName
1 parent 945f453 commit 45b3204

File tree

25 files changed

+51
-51
lines changed

25 files changed

+51
-51
lines changed

src/ast/nodes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ export interface VIdentifier extends HasLocation, HasParent {
627627
type: "VIdentifier"
628628
parent: VAttribute
629629
name: string
630-
raw: string
630+
rawName: string
631631
}
632632

633633
export interface DirectiveKeyParts {

src/html/intermediate-tokenizer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ export class IntermediateTokenizer {
359359
loc: {start: token.loc.start, end: token.loc.end},
360360
parent: DUMMY_PARENT,
361361
name: token.value,
362-
raw: this.text.slice(token.range[0], token.range[1]),
362+
rawName: this.text.slice(token.range[0], token.range[1]),
363363
},
364364
value: null,
365365
}

src/template/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function createDirectiveKey(node: VIdentifier): VDirectiveKey {
7878
raw,
7979
}
8080
const id = node.name
81-
const rawId = node.raw
81+
const rawId = node.rawName
8282
let i = 0
8383

8484
if (node.name.startsWith(":")) {

test/fixtures/ast/attributes/ast.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
}
147147
},
148148
"name": "a",
149-
"raw": "a"
149+
"rawName": "a"
150150
},
151151
"value": null
152152
}
@@ -260,7 +260,7 @@
260260
}
261261
},
262262
"name": "a",
263-
"raw": "a"
263+
"rawName": "a"
264264
},
265265
"value": null
266266
}
@@ -374,7 +374,7 @@
374374
}
375375
},
376376
"name": "a",
377-
"raw": "a"
377+
"rawName": "a"
378378
},
379379
"value": {
380380
"type": "VLiteral",
@@ -505,7 +505,7 @@
505505
}
506506
},
507507
"name": "a",
508-
"raw": "a"
508+
"rawName": "a"
509509
},
510510
"value": {
511511
"type": "VLiteral",
@@ -636,7 +636,7 @@
636636
}
637637
},
638638
"name": "a",
639-
"raw": "a"
639+
"rawName": "a"
640640
},
641641
"value": {
642642
"type": "VLiteral",
@@ -767,7 +767,7 @@
767767
}
768768
},
769769
"name": "a",
770-
"raw": "a"
770+
"rawName": "a"
771771
},
772772
"value": {
773773
"type": "VLiteral",

test/fixtures/ast/cdata/ast.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
}
147147
},
148148
"name": "width",
149-
"raw": "Width"
149+
"rawName": "Width"
150150
},
151151
"value": {
152152
"type": "VLiteral",
@@ -201,7 +201,7 @@
201201
}
202202
},
203203
"name": "height",
204-
"raw": "heiGht"
204+
"rawName": "heiGht"
205205
},
206206
"value": {
207207
"type": "VLiteral",
@@ -256,7 +256,7 @@
256256
}
257257
},
258258
"name": "viewBox",
259-
"raw": "viewbox"
259+
"rawName": "viewbox"
260260
},
261261
"value": {
262262
"type": "VLiteral",
@@ -462,7 +462,7 @@
462462
}
463463
},
464464
"name": "d",
465-
"raw": "d"
465+
"rawName": "d"
466466
},
467467
"value": {
468468
"type": "VLiteral",

test/fixtures/ast/error-duplicate-attribute/ast.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
}
147147
},
148148
"name": "id",
149-
"raw": "id"
149+
"rawName": "id"
150150
},
151151
"value": {
152152
"type": "VLiteral",
@@ -201,7 +201,7 @@
201201
}
202202
},
203203
"name": "id",
204-
"raw": "id"
204+
"rawName": "id"
205205
},
206206
"value": {
207207
"type": "VLiteral",

test/fixtures/ast/error-eof-in-tag-2/ast.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
}
147147
},
148148
"name": "a",
149-
"raw": "a"
149+
"rawName": "a"
150150
},
151151
"value": null
152152
}

test/fixtures/ast/error-eof-in-tag-3/ast.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
}
147147
},
148148
"name": "a",
149-
"raw": "a"
149+
"rawName": "a"
150150
},
151151
"value": null
152152
}

test/fixtures/ast/error-eof-in-tag-4/ast.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
}
147147
},
148148
"name": "a",
149-
"raw": "a"
149+
"rawName": "a"
150150
},
151151
"value": {
152152
"type": "VLiteral",

test/fixtures/ast/error-eof-in-tag-5/ast.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
}
147147
},
148148
"name": "a",
149-
"raw": "a"
149+
"rawName": "a"
150150
},
151151
"value": {
152152
"type": "VLiteral",

0 commit comments

Comments
 (0)