getDiagnostics
Generates a list of diagnostics.
Return
a list of diagnostics that can be reported
Parameters
document
the current document
Generates a list of diagnostics.
a list of diagnostics that can be reported
the current document