The title says it all. Using OverrideMethodAspect
.
I've been using PostSharp for many years and am trying to convert to Metalama.
In Metalama 2023.3 or later, you can do:
meta.Target.Declaration.Sources.SingleOrDefault( x => x.IsImplementationPart ).Span
The returned object gives you the file and line number.