From 187efcb421cbb742aa01dd48f11862b0875514d7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Sat, 6 May 2017 15:27:16 -0400 Subject: [PATCH] model: bring back call site doc to highlight as `CallSite::mdoc_or_fallback` MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- src/model/mdoc.nit | 1 + src/semantize/typing.nit | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/model/mdoc.nit b/src/model/mdoc.nit index 408e572..7ce57e4 100644 --- a/src/model/mdoc.nit +++ b/src/model/mdoc.nit @@ -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 diff --git a/src/semantize/typing.nit b/src/semantize/typing.nit index d5cbb46..fc89e5f 100644 --- a/src/semantize/typing.nit +++ b/src/semantize/typing.nit @@ -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 -- 1.7.9.5