Closed captainsafia closed 2 weeks ago
My expectation here is that we would introduce an InterceptorsNamespaces
property which is basically just an alias for InterceptorsPreviewNamespaces
, at least in the medium term.
The reason is that this simplifies "discovery" of [InterceptsLocation]
attributes which has to occur when public APIs like SemanticModel.GetInterceptorMethod(InvocationExpressionSyntax)
are used.
Essentially until we make the engineering investment to make discovery more performant for editor scenarios it feels like we should continue to require this.
The compiler will emit a warning for source generators that use interceptors about the need for an
InterceptorsPreviewNamespaces
property in the target project.cc: @jaredpar @RikkiGibson