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. Each inspection has a unique identifier (see Identifier), which is included in the string tag (see object.ToString), for example: 'CX0001'
.
Public / Constants
CX0001
[CX0001] 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.All
CX0002
[CX0002] unresolved reference: ...
A PSI node that implements th ICxReference 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.All