Skip to content

Commit b2e6437

Browse files
committed
refactor: Renamed variables
1 parent bef55d3 commit b2e6437

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/parse/preprocess.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ export function preprocessTemplateRange(
5151
// forward slash breaks the parsed templates.
5252
const contents = template.contents.replaceAll('/', PLACEHOLDER);
5353

54-
const tplLength = template.range.end - template.range.start;
54+
const templateLength = template.range.end - template.range.start;
5555
const spaces =
56-
tplLength - getBuffer(contents).length - prefix.length - suffix.length;
56+
templateLength - getBuffer(contents).length - prefix.length - suffix.length;
5757

5858
return replaceContents(code, {
5959
contents: [prefix, contents, ' '.repeat(spaces), suffix].join(''),
@@ -63,9 +63,9 @@ export function preprocessTemplateRange(
6363

6464
/** Pre-processes the template info, parsing the template content to Glimmer AST. */
6565
export function codeToGlimmerAst(code: string, filename: string): Template[] {
66-
const rawTemplates = parse(code, { filename });
66+
const contentTags = parse(code, { filename });
6767

68-
const templates: Template[] = rawTemplates.map((r) => ({
68+
const templates: Template[] = contentTags.map((r) => ({
6969
contentRange: r.contentRange,
7070
contents: r.contents,
7171
range: r.range,

0 commit comments

Comments
 (0)