Properly implement doc-comment
attribute
#6938
Labels
compiler: frontend
Everything to do with type checking, control flow analysis, and everything between parsing and IRgen
compiler: parser
Everything to do with the parser
compiler
General compiler. Should eventually become more specific as the issue is triaged
P: low
team:compiler
Compiler Team
Currently, the
doc-comment
attribute's implementation still relays on a hack that was necessary in the beginning because the attribute arguments didn't support values. Basically, the comment line is stored within anAttributeArg::name
.The knowledge of this workaround has unfortunately spread around the codebase. Different parts of code that analyze doc comments extract the comment from the arg in place and uses different approaches for that (sometimes fetching the first/last argument, sometimes iterating through all arguments, ...). Some of those parts of code will be marked with a TODO linking to this issue.
The text was updated successfully, but these errors were encountered: