Skip to content

Commit

Permalink
Merge pull request #222 from cashapp/bradfol/fix-line-error
Browse files Browse the repository at this point in the history
Fix line attachment for syntax error
  • Loading branch information
bradfol authored Dec 16, 2024
2 parents eb127c6 + e79c225 commit 6c24faa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/KnitCodeGen/FunctionCallRegistrationParsing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ extension FunctionCallExprSyntax {
functionName: .implements
) {
if forwardedRegistration.hasRedundantGetter {
throw RegistrationParsingError.redundantGetter(syntax: implementsCalledMethod.calledExpression)
throw RegistrationParsingError.redundantGetter(
// Place the error on the `.implements` decl
syntax: implementsCalledMethod.calledExpression.declName
)
}
forwardedRegistrations.append(forwardedRegistration)
}
Expand Down

0 comments on commit 6c24faa

Please sign in to comment.