Replies: 1 comment
-
Metalama VSX is available for download here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We've just released Metalama 2023.4.2-preview, which includes all fixes and enhancements from 2023.4.1-preview and 2023.3.6-rc in addition to the following changes.
New Features
Metalama.Framework.Options
namespace: a new framework for hierarchical options of aspects. See the API doc. The conceptual doc will come later.IAnnotation
,IAdviceFactory.AddAnnotation
anddeclaration.Enhancements().GetAnnotations
.Improved
New APIs:
IMemberOrNamedType.GetBase
extension method: gets the base type or overridden member.IAttribute.TryConstruct
extension method: creates a CLR instance of a compile-time custom attribute.ICompilation.GetAllAttributesOfType
: gets all attributes of a given type in a project.IMemberOrNamedType.Definition
: navigates to the generic definition.LocationExtensions.ToDiagnosticLocation( this Location? location )
: converts a RoslynLocation
into a MetalamaIDiagnosticLocation
.Changed behavior
ContainingDeclaration
of the namespace now returns the declaring assembly instead of the current compilationBreaking changes
Metalama.Extensions.DependencyInjection
DependencyProperties
record constructor has changed.DependencyInjectionOptions
has completely changed. It may not be the final design.Fixed
INamespace
: Conflicts when several assemblies contributed to the same namespace.using XX = YY
.Enhancements().HasAspect
does not report inherited aspects.Beta Was this translation helpful? Give feedback.
All reactions