Closed yaroslavhq closed 9 years ago
New class Name is an unique identifier for DocElement. Elements those are could be documented should implement trait DocElement. Rest model members should extend trait Tree. Unresolved questions: How should default value be implemented? (there is default: Option[Term] filed in original scalameta tree, but in doc we don't need all staff connected with Term) Should we have file:SourceFile member in Defn? Should we have parent reference in tree trait?{trait tree {def parent : Tree }} Also, (maybe in scope of Index) we should be able to map Type.Name => Name => DocElement, for supporting links,etc.
@kolowheel For all the things you are not sure about if we need them? Leave them out for now, we can add them when we need them. Not sure what you mean by map Type.Name => Name => DocElement
Can you explain more?
do we still need DocElement? Can't we use something from the meta trees instead? E.g. Tree or Symbol or something?
@kolowheel heading the right way. Can we still move ClassDoc, TraitDoc into the meta structure? Probably means adding Template. Or anything that prevents it?
fixes #3
fixes #6