Function: collectProfileDefects()
collectProfileDefects(
profile): readonlyProfileDefect[]
Internal
Collect every structural defect in a candidate conformance profile. Total
over unknown and never throws: a caller may pass any value (even one
cast through any) and get back a defect list rather than an exception. An
empty result means the profile is well-formed enough to validate against.
Parameters
profile
unknown
Returns
readonly ProfileDefect[]