Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

New annotation: @type to change the type of a declaration #875

Open
lukarade opened this issue Jul 1, 2022 · 0 comments
Open

New annotation: @type to change the type of a declaration #875

lukarade opened this issue Jul 1, 2022 · 0 comments
Labels
enhancement 💡 New feature or request

Comments

@lukarade
Copy link
Contributor

lukarade commented Jul 1, 2022

Is your feature request related to a problem?

Currently, it is not possible to change the type of any parameter. Often the documentation is not correct or unspecific.
Sometimes we just want to replace the type, for example String with Enum.

Desired solution

Add a new annotation type: "@type" with one parameter, with the following possible values:

  • String → Enum
  • Int/Float → Boundary
  • Other named types (also possible from library) → NamedType (from Typing)

Possible alternatives (optional)

No response

Screenshots (optional)

No response

Additional Context (optional)

Also see Safe-DS/Library-Analyzer#42, Safe-DS/Library-Analyzer#36, and Safe-DS/Library-Analyzer#23

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement 💡 New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant