Parse then compile text, returning a list of diagnostics — empty when the machine parses and compiles cleanly.
text
fslDiagnostics('a -> b;'); // => [] fslDiagnostics('a -> ;')[0].severity; // => 'error' // a `required` property no state defines is a construction-time error: fslDiagnostics('property p required; a -> b;')[0].severity; // => 'error' Copy
fslDiagnostics('a -> b;'); // => [] fslDiagnostics('a -> ;')[0].severity; // => 'error' // a `required` property no state defines is a construction-time error: fslDiagnostics('property p required; a -> b;')[0].severity; // => 'error'
Parse then compile
text, returning a list of diagnostics — empty when the machine parses and compiles cleanly.