interface XdmSimpleExpression {
val derivedType: XdmType
val constantValue: Any?
}
This provides the data model for representing expressions that can evaluate to a single constant value, specifically OrExpr nodes. This allows support for constant code warnings and folding, as well as other static analysis.
This issue implements XdmSimpleExpression for OrExpr nodes that contain a single Literal node as follows:
The design and optree model for this has changed. Additionally, simple (value) type forwarding is no longer needed as a result of the PSI tree simplification.
This provides the data model for representing expressions that can evaluate to a single constant value, specifically
OrExpr
nodes. This allows support for constant code warnings and folding, as well as other static analysis.This issue implements
XdmSimpleExpression
forOrExpr
nodes that contain a singleLiteral
node as follows:Simple Expression Nodes: