private import annotation
redef class ToolContext
+ # Check for unknown annotation in each module
var check_annotation_phase: Phase = new CheckAnnotationPhase(self, null)
end
do
# Get the mmodule
var mmodule = nmodule.mmodule
- assert mmodule != null
+ if mmodule == null then return
self.mmodule = mmodule
# If no decl block then quit
readonly
writable
autoinit
-cached
+noautoinit
nosuper
old_style_init
abstract
intern
extern
+no_warning
+
+auto_inspect
pkgconfig
-c_compiler_option
-c_linker_option
+cflags
+ldflags
platform
"""
if primtives_annotations.has(name) then return
var mmodule = self.mmodule
- assert mmodule != null
+ if mmodule == null then return
# Lazily build the full user-list
var annots = user_annotations.get_or_null(mmodule)