Table of Contents

Interface ICoreDiagnosticsFactory

Namespace
RDCore.SDK.Semantics.Diagnostics
Assembly
RDCore.SDK.dll
public interface ICoreDiagnosticsFactory

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.

Diagnostic FromVBApplicationError(VBApplicationErrorInfo info)

Parameters

info VBApplicationErrorInfo

The domain or application run-time error metadata.

Returns

Diagnostic

A pseudo-coded VBA00000 error-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.

Diagnostic FromVBCompileError(VBCompileErrorInfo info)

Parameters

info VBCompileErrorInfo

The 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.

Diagnostic FromVBRuntimeError(VBRuntimeErrorInfo info)

Parameters

info VBRuntimeErrorInfo

The 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.

Diagnostic FromVBSyntaxError(VBSyntaxErrorInfo info)

Parameters

info VBSyntaxErrorInfo

The 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.