From 0fb6696fcc5c7195c27f772162c785c21237b11d Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Mon, 24 Aug 2015 15:46:40 -0400 Subject: [PATCH] loader: projects might have a ini file associated Signed-off-by: Jean Privat --- src/loader.nit | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/loader.nit b/src/loader.nit index 75ad359..53b2234 100644 --- a/src/loader.nit +++ b/src/loader.nit @@ -18,6 +18,7 @@ module loader import modelbuilder_base +import ini redef class ToolContext # Option --path @@ -918,6 +919,15 @@ class ModulePath redef fun to_s do return filepath end +redef class MProject + # The associated `.ini` file, if any + # + # The `ini` file is given as is and might contain invalid or missing information. + # + # Some projects, like stand-alone projects or virtual projects have no `ini` file associated. + var ini: nullable ConfigTree = null +end + redef class MGroup # Modules paths associated with the group var module_paths = new Array[ModulePath] -- 1.7.9.5