Lines Matching refs:destructor
49 | Default %destructor's and %printer's. |
78 code_props_none_init (&res->destructor);
108 code_props_none_init (&res->destructor);
134 SYMBOL_CODE_PRINT (destructor);
190 | Set the DESTRUCTOR associated with SYM. |
194 symbol_destructor_set (symbol *sym, code_props const *destructor)
196 if (sym->destructor.code)
197 symbol_redeclaration (sym, "%destructor", sym->destructor.location,
198 destructor->location);
199 sym->destructor = *destructor;
203 | Set the DESTRUCTOR associated with TYPE. |
208 code_props const *destructor)
210 if (type->destructor.code)
211 semantic_type_redeclaration (type, "%destructor",
212 type->destructor.location,
213 destructor->location);
214 type->destructor = *destructor;
218 | Get the computed %destructor for SYM. |
224 /* Per-symbol %destructor. */
225 if (sym->destructor.code)
226 return &sym->destructor;
228 /* Per-type %destructor. */
231 code_props const *destructor =
232 &semantic_type_get (sym->type_name)->destructor;
233 if (destructor->code)
234 return destructor;
237 /* Apply default %destructor's only to user-defined symbols. */
458 if (str->destructor.code || sym->destructor.code)
460 if (str->destructor.code)
461 symbol_destructor_set (sym, &str->destructor);
463 symbol_destructor_set (str, &sym->destructor);
925 | Set default tagged/tagless %destructor/%printer. |
929 default_tagged_destructor_set (code_props const *destructor)
934 complain_at_indent (destructor->location, &i,
935 _("redeclaration for default tagged %%destructor"));
940 default_tagged_destructor = *destructor;
944 default_tagless_destructor_set (code_props const *destructor)
949 complain_at_indent (destructor->location, &i,
950 _("redeclaration for default tagless %%destructor"));
955 default_tagless_destructor = *destructor;