CxInspection
Description
Represents an inspection that may be performed on PSI nodes.
An inspection is performed by calling the Check method. The given CxNode is inspected and zero or more messages are output to the specified Validator.
By failing, an inspection indicates that a problem exists which will have consequences as described by Flags. The name of an inspection is derived from its flags, for example: 'CX00001'
.
Public / Constants
CX00001
[CX00001] bad code model: ...
The code model contains critical semantic errors:
-
…invalid name
A PSI node contains a CxId or CxName value that is invalid, see CxId.Invalid resp. CxName.Invalid. Invalid names cannot be parsed, so this problem may only occur when building a PSI model from code. Using invalid names in source code will trigger syntax errors.
Inspection flags:
CxInspectionFlags.SeverityCritical
CX00002
[CX00002] unresolved reference: ...
A PSI node that implements the ICxReference interface has not been resolved completely, i.e. IPsiNode.IsResolved returns false
.
The code model must be modified in order to fix this, either by adding missing code parts or by repairing broken code references.
Inspection flags:
CxInspectionFlags.SeverityCritical
CX01001
[CX01001] missing native code: ...
No native code for CxStatementCode.LanguageCpp has been specified for the CxStatementCode.
Inspection flags:
CxInspectionFlags.SeverityCritical, CxInspectionFlags.TargetCpp
CX02001
[CX02001] missing native code: ...
No native code for CxStatementCode.LanguageCs has been specified for the CxStatementCode.
Inspection flags:
CxInspectionFlags.SeverityCritical, CxInspectionFlags.TargetCs
CX03001
[CX03001] missing native code: ...
No native code for CxStatementCode.LanguageHlsl has been specified for the CxStatementCode.
Inspection flags:
CxInspectionFlags.SeverityCritical, CxInspectionFlags.TargetHlsl
CX04001
[CX04001] missing native code: ...
No native code for CxStatementCode.LanguageGlsl has been specified for the CxStatementCode.
Inspection flags:
CxInspectionFlags.SeverityCritical, CxInspectionFlags.TargetGlsl