diff --git a/Sources/KnitCodeGen/FunctionCallRegistrationParsing.swift b/Sources/KnitCodeGen/FunctionCallRegistrationParsing.swift index 107b740..0e0f817 100644 --- a/Sources/KnitCodeGen/FunctionCallRegistrationParsing.swift +++ b/Sources/KnitCodeGen/FunctionCallRegistrationParsing.swift @@ -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) }