pub fn hasSpecialBodies(id: Id) bool
id: Id
2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905
pub fn hasSpecialBodies(id: Id) bool { return switch (id) { .unnamed_test, .@"test", .decltest, .@"comptime", => false, // these constructs are untyped .const_simple, .const_typed, .pub_const_simple, .pub_const_typed, .extern_const_simple, .pub_extern_const_simple, .var_simple, .pub_var_simple, => false, // these reprs omit special bodies else => true, }; }