model: add `MDoc::location`
[nit.git] / src / modelbuilder_base.nit
index 6cbcbef..9995338 100644 (file)
@@ -375,7 +375,7 @@ redef class ADoc
        do
                var res = mdoc_cache
                if res != null then return res
-               res = new MDoc
+               res = new MDoc(location)
                for c in n_comment do
                        var text = c.text
                        if text.length < 2 then