nitc: add new module annotation `is generated`
[nit.git] / src / model / mmodule.nit
index 44eaffb..9d1fb9c 100644 (file)
@@ -251,6 +251,12 @@ class MModule
        # Is `self` a unit test module used by `nitunit`?
        var is_test_suite: Bool = false is writable
 
+       # Is `self` a module generated by a tool?
+       #
+       # This flag has no effect on the semantic.
+       # It is only intended on software engineering software to discriminate computer-generated modules from human-written ones.
+       var is_generated: Bool = false is writable
+
        # Get the non-`is_fictive` module on which `self` is based on.
        #
        # On non-fictive module, this returns `self`.