seaofvoices / darklua

A command line tool that transforms Lua code
https://darklua.com/
MIT License
71 stars 9 forks source link

Fix spacing when generating field-like structures #193

Closed jeparlefrancais closed 3 months ago

jeparlefrancais commented 3 months ago

Closes #185

This removes the space when generating field expressions, function statements (like Table0.fun) and types using namespaces.

github-actions[bot] commented 3 months ago

Coverage after merging fix-generator-field-spacing into main will be

85.87%

Coverage Report for Changed Files
FileStmtsBranchesFuncsLinesUncovered Lines
src/generator
   dense.rs87.21%100%92.31%86.73%1012–1018, 1035–1039, 1047, 1056–1057, 1062, 1068, 1077–1085, 1087–1093, 1095–1103, 1108, 1117, 1129–1132, 1136–1139, 159–160, 162, 176–177, 179, 253–265, 267–273, 275–276, 287–289, 368, 417, 50, 507, 51–55, 57–59, 61, 614–616, 62–63, 65–68, 685, 69, 704, 75–76, 80, 897, 942, 959, 986–993
   mod.rs98.68%100%100%98.59%354, 370, 374
   readable.rs97.37%100%99.03%97.23%1122, 1173–1177, 1229, 1326, 1336, 1345, 1354, 1363, 180, 185–186, 190, 203–204, 209, 214, 232–233, 413, 46–51, 53, 655–656
   token_based.rs91.41%100%94.09%91.16%1001–1002, 1016–1018, 1032–1034, 1043–1045, 1054–1056, 1065–1067, 1117–1121, 113, 1276, 130–131, 1346, 1383–1391, 1467–1469, 147, 1470–1476, 148, 1501–1503, 1505–1507, 1524–1533, 1577, 160–161, 1635, 182–183, 203, 2032, 204–205, 2091–2092, 2118–2122, 2151–2155, 2162–2166, 2375, 2379, 2392, 245, 297–301, 371–372, 378, 390, 450–451, 473–474, 490–491, 533, 621–622, 655–656, 724–725, 766–767, 80, 808–812, 830–831, 84, 904–905, 914–915, 922, 937, 942–946, 965–966, 979–980