Ada: Minor cleanup in aspect handling.
Uses Decorate to set fields for aspects, cleaning up the code.
This commit simplifies the code by using the Decorate function to set fields for aspects instead of manually setting them. This improves code readability and maintainability by centralizing the aspect decoration logic.
In Details
This commit modifies sem_ch13.adb within the GNAT compiler. It replaces manual field setting with a call to Decorate in Make_Pragma_From_Boolean_Aspect. This is a minor cleanup that improves code maintainability.
For Context
In the Ada compiler, 'aspects' are used to add extra information or constraints to code elements. This commit simplifies the internal code that handles aspects by using a central function called Decorate to set the necessary fields, making the code cleaner and easier to understand.