normalizeObjectStates(in:diagnostics:)

public mutating func normalizeObjectStates(in f: Function.ID, diagnostics: inout DiagnosticSet)

Ensures that objects in f are initialized before use and deinitialized after last use, reporting errors and warnings to diagnostics.

Requires

Borrows in self have been closed. f is in self.