Closed
Description
Especially the file and line information generated for types is rather arbitrary as the span
value is just passed to create_type_metadata()
from the caller. So the type gets assigned the span of the local variable or argument that happens to be the first to be translated.
This should be easy fix by reading span information from the type definitions in the AST where it makes sense and to omit the span information otherwise.