Matches the imaginary part of literal complex-number values.
This pattern only matches nodes of type expression.
Properties
imaginaryLiteral produces a record that contains the following property:
| Name | Type | Description |
|---|---|---|
valueString |
string |
The complex component of the imaginary value, represented as a string |
Inherits properties from:
Example
The following source pattern:
33.14j;
... could be matched by the following CodeXM code:
f matches imaginaryLiteral { .valueString == "33.14" };