From 88c32a07643c209f5d878aaff719530871b895a9 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Tue, 13 Oct 2015 11:47:20 -0400 Subject: [PATCH] online_ide: update to the new API of the loader Signed-off-by: Jean Privat --- contrib/online_ide/sources/nit/pnacl_nit.nit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/online_ide/sources/nit/pnacl_nit.nit b/contrib/online_ide/sources/nit/pnacl_nit.nit index ed8151d..9522036 100644 --- a/contrib/online_ide/sources/nit/pnacl_nit.nit +++ b/contrib/online_ide/sources/nit/pnacl_nit.nit @@ -97,7 +97,7 @@ redef class ModelBuilder redef fun module_absolute_path(path: String): String do return path # We don't use paths as the interpreter, so we don't use location or lookpaths args (see the default implementation). - redef fun search_module_in_paths(location: nullable Location, name: String, lookpaths: Collection[String]): nullable ModulePath + redef fun search_module_in_paths(location: nullable Location, name: String, lookpaths: Collection[String]): nullable MModule do var candidate: nullable String = null var try_file = "{name}.nit" @@ -114,7 +114,7 @@ redef class ModelBuilder end end if candidate == null then return null - return identify_file(candidate) + return identify_module(candidate) end end -- 1.7.9.5