Numeric values are missing from NumberLiterals with Units #15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Results in the NumberLiteral containing only the unit, but not the actual numeric value:
Compared to just
width:0:What is the problem, though? The
NumberLiteralnode exactly covers the entire literal. If you want the part without the unit, subtract theUnitnode's extent.Ok, I just thought that this might be unintended :)