Space Station 13 - Nebula13 - Modules - TypesProc Details

decls

Procs

get_first_concrete_decl_path_of_typeGets the path of any concrete (non-abstract) decl of the provided type. If decl_prototype is not abstract it will return that type. Otherwise, it returns the first (in compile order) non-abstract child of this type, or null otherwise. This doesn't respect DECL_FLAG_ALLOW_ABSTRACT_INIT, but that flag should probably be deprecated someday and replaced with a better solution to avoid instantiating abstract decls. This is mostly used for recipe validation in unit tests and such.

Proc Details

get_first_concrete_decl_path_of_type

Gets the path of any concrete (non-abstract) decl of the provided type. If decl_prototype is not abstract it will return that type. Otherwise, it returns the first (in compile order) non-abstract child of this type, or null otherwise. This doesn't respect DECL_FLAG_ALLOW_ABSTRACT_INIT, but that flag should probably be deprecated someday and replaced with a better solution to avoid instantiating abstract decls. This is mostly used for recipe validation in unit tests and such.