Closed jvasileff closed 9 years ago
stringLiteralToCeylon turns empty strings into the string "".
stringLiteralToCeylon
""
value ast1 = StringLiteral("", true); // or false value rh = RedHatTransformer(SimpleTokenFactory()) .transformStringLiteral(ast1); value ast2 = stringLiteralToCeylon(rh); print("~" + ast1.text + "~"); // ~~ print("~" + ast2.text + "~"); // ~""~
AAH. Subrange behavior strikes again: text[1 .. (text.length - 2)] == text[1 .. -1] == text[-1 .. 1].reversed. We’ve had that before :(
text[1 .. (text.length - 2)] == text[1 .. -1] == text[-1 .. 1].reversed
oops! Yeah, I like the prior fix to use :
:
Should be fixed now.
stringLiteralToCeylon
turns empty strings into the string""
.