Skip to content

Commit e87b33c

Browse files
NullVoxPopuliclaude
andcommitted
Fix prettier format
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent edc604a commit e87b33c

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

packages/@glimmer/syntax/lib/parser/tokenizer-event-handlers.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -799,11 +799,7 @@ function convertRustError(error: RustParseError, source: src.Source, sourceStr:
799799
const specific = detectSpecificError(sourceStr, loc);
800800
if (specific) {
801801
const offset = loc ? charPosToOffset(sourceStr, loc.start.line, loc.start.column) : 0;
802-
const span = src.SourceSpan.forCharPositions(
803-
source,
804-
offset,
805-
offset + (specific.length ?? 0)
806-
);
802+
const span = src.SourceSpan.forCharPositions(source, offset, offset + (specific.length ?? 0));
807803
return generateSyntaxError(specific.message, span);
808804
}
809805

@@ -854,10 +850,7 @@ interface SpecificError {
854850
length?: number;
855851
}
856852

857-
function detectSpecificError(
858-
sourceStr: string,
859-
loc: RustParseError['loc']
860-
): SpecificError | null {
853+
function detectSpecificError(sourceStr: string, loc: RustParseError['loc']): SpecificError | null {
861854
if (!loc) return null;
862855

863856
const offset = charPosToOffset(sourceStr, loc.start.line, loc.start.column);

0 commit comments

Comments
 (0)