model: bring back call site doc to highlight as `CallSite::mdoc_or_fallback`
authorAlexis Laferrière <alexis.laf@xymus.net>
Sat, 6 May 2017 19:27:16 +0000 (15:27 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Sun, 7 May 2017 17:28:30 +0000 (13:28 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

src/model/mdoc.nit
src/semantize/typing.nit

index 408e572..7ce57e4 100644 (file)
@@ -45,6 +45,7 @@ redef class MEntity
        #   their introducing definition.
        # * `MClassType`s fall back to their wrapped `MClass`.
        # * `MVirtualType`s fall back to their wrapped `MProperty`.
+       # * `CallSite` fall back on the wrapped `MProperty`.
        # * Other entities do not fall back.
        #
        # One may use `MDoc::original_mentity` to retrieve the original
index d5cbb46..fc89e5f 100644 (file)
@@ -785,6 +785,8 @@ class CallSite
        fun dump_info(v: ASTDump): String do
                return "{recv}.{mpropdef}{msignature}"
        end
+
+       redef fun mdoc_or_fallback do return mproperty.intro.mdoc
 end
 
 redef class Variable