Class DiagnosticFactory
- Namespace
- RDCore.SDK.Semantics.Diagnostics
- Assembly
- RDCore.SDK.dll
public class DiagnosticFactory : ICoreDiagnosticsFactory
- Inheritance
-
DiagnosticFactory
- Implements
- Inherited Members
Methods
FromVBApplicationError(VBApplicationErrorInfo)
Creates a new Diagnostic from the provided VBApplicationErrorInfo representing an application-level custom run-time error explicitly raised by Error or Err.Raise staements in the workspace source code.
public Diagnostic FromVBApplicationError(VBApplicationErrorInfo info)
Parameters
infoVBApplicationErrorInfoThe domain or application run-time error metadata.
Returns
- Diagnostic
A pseudo-coded
VBA00000error-level diagnostic.
Remarks
MS-VBAL does not differentiate a custom application error from a semantic run-time error. The numeric portion of the diagnostic code matches the corresponding application-supplied error code.
FromVBCompileError(VBCompileErrorInfo)
Creates a new Diagnostic from the provided VBCompileErrorInfo representing a semantic (static/AST) compile-time error.
public Diagnostic FromVBCompileError(VBCompileErrorInfo info)
Parameters
infoVBCompileErrorInfoThe AST compile-time error metadata
Returns
- Diagnostic
A coded
VBC00000(Visual Basic Compilation) error-level diagnostic in the range[09300-09999].
FromVBRuntimeError(VBRuntimeErrorInfo)
Creates a new Diagnostic from the provided VBRuntimeErrorInfo representing a semantic (runtime) run-time error.
public Diagnostic FromVBRuntimeError(VBRuntimeErrorInfo info)
Parameters
infoVBRuntimeErrorInfoThe run-time error metadata.
Returns
- Diagnostic
A coded
VBR00000(Visual Basic Runtime) error-level diagnostic. The numeric portion of the diagnostic code matches the corresponding MS-VBA run-time error code.
FromVBSyntaxError(VBSyntaxErrorInfo)
Creates a new Diagnostic from the provided VBSyntaxErrorInfo representing a semantic (static/CST) syntax error.
public Diagnostic FromVBSyntaxError(VBSyntaxErrorInfo info)
Parameters
infoVBSyntaxErrorInfoThe CST compile-time error metadata.
Returns
- Diagnostic
A coded
VBC00000(Visual Basic Compilation) error-level diagnostic in the range[00001-00999].
Remarks
MS-VBAL does not differentiate compile-time errors thrown in static token/concrete syntax tree (CST) semantics from errors thrown in static abstract syntax tree (AST) semantics.