Convert getLiteralResolver and other literal code