File tree Expand file tree Collapse file tree 3 files changed +5
-15
lines changed
packages/svelte/src/compiler/phases/1-parse Expand file tree Collapse file tree 3 files changed +5
-15
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' svelte ' : patch
3
+ ---
4
+
5
+ chore: remove ` parser.template_untrimmed `
Original file line number Diff line number Diff line change @@ -23,12 +23,6 @@ export class Parser {
23
23
*/
24
24
template ;
25
25
26
- /**
27
- * @readonly
28
- * @type {string }
29
- */
30
- template_untrimmed ;
31
-
32
26
/**
33
27
* Whether or not we're in loose parsing mode, in which
34
28
* case we try to continue parsing as much as possible
@@ -67,7 +61,6 @@ export class Parser {
67
61
}
68
62
69
63
this . loose = loose ;
70
- this . template_untrimmed = template ;
71
64
this . template = template . trimEnd ( ) ;
72
65
73
66
let match_lang ;
Original file line number Diff line number Diff line change @@ -370,14 +370,6 @@ export default function element(parser) {
370
370
// ... or we're followed by whitespace, for example near the end of the template,
371
371
// which we want to take in so that language tools has more room to work with
372
372
parser . allow_whitespace ( ) ;
373
- if ( parser . index === parser . template . length ) {
374
- while (
375
- parser . index < parser . template_untrimmed . length &&
376
- regex_whitespace . test ( parser . template_untrimmed [ parser . index ] )
377
- ) {
378
- parser . index ++ ;
379
- }
380
- }
381
373
}
382
374
}
383
375
}
You can’t perform that action at this time.
0 commit comments