You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Annotations are not compiled and very easy to type wrong. Then it can produce confusing result for which you need to read template carefully. To improve understanding of templates we can introduce documentation api that can be placed in header comment of template and can look like this:
{#
desc: description of template
annotations:
- some_annotation: description of annotation
- another_annotation: description of annotation
#}
Then we can parse annotations from these comments and when we parsing them from code and find unknown annotation we can suggest user with correct syntax using the same approach as in #471.
We can do the same for arguments, though they are less used and only passed once when running tool.
The text was updated successfully, but these errors were encountered:
Annotations are not compiled and very easy to type wrong. Then it can produce confusing result for which you need to read template carefully. To improve understanding of templates we can introduce documentation api that can be placed in header comment of template and can look like this:
Then we can parse annotations from these comments and when we parsing them from code and find unknown annotation we can suggest user with correct syntax using the same approach as in #471.
We can do the same for arguments, though they are less used and only passed once when running tool.
The text was updated successfully, but these errors were encountered: