moosetechnology / Famix

An abstract representation of source code. Famix is generic and can describe applications in multiple programming languages.
MIT License
12 stars 22 forks source link

Why TComment uses TEntityMetaLevelDependency #781

Open NicolasAnquetil opened 3 weeks ago

NicolasAnquetil commented 3 weeks ago

TEntityMetaLevelDependency introduces mostly metrics that TComment does not need

jecisc commented 3 weeks ago

The goal of TEntityMetaLevelDependency is not for metrics. It's for business entities of Famix that can be queried. Without this trait we cannot call some methods such as #parents and we cannot manipulate comments in tools based on MooseQuery

NicolasAnquetil commented 3 weeks ago

OK, so may be we should create a trait TBusinessEntity or TFirstClassEntity to differentiate them from associations and technical entities