You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1289,6 +1312,7 @@ local function _processFileOrString(params, isFile)
1289
1312
localinfo= {
1290
1313
processedByteCount=processedByteCount,
1291
1314
lineCount=lineCount,
1315
+
linesOfCode=lineCountCode,
1292
1316
tokenCount=tokenCount,
1293
1317
hasPreprocessorCode=hasPreprocessorCode,
1294
1318
}
@@ -1358,16 +1382,16 @@ local lib = {
1358
1382
-- error: Error message, or nil if no error happened.
1359
1383
--
1360
1384
-- params: Table with these fields:
1361
-
-- pathIn = pathToInputFile -- [Required]
1362
-
-- pathMeta = pathForMetaprogram -- [Optional] You can inspect this temporary output file if an error ocurrs in the metaprogram.
1363
-
-- pathOut = pathToOutputFile -- [Required]
1385
+
-- pathIn = pathToInputFile -- [Required]
1386
+
-- pathMeta = pathForMetaprogram -- [Optional] You can inspect this temporary output file if an error ocurrs in the metaprogram.
1387
+
-- pathOut = pathToOutputFile -- [Required]
1364
1388
--
1365
-
-- addLineNumbers = boolean -- [Optional] Add comments with line numbers to the output.
1366
-
-- debug = boolean -- [Optional] Debug mode. The metaprogram file is formatted more nicely and does not get deleted automatically.
1389
+
-- addLineNumbers = boolean -- [Optional] Add comments with line numbers to the output.
1390
+
-- debug = boolean -- [Optional] Debug mode. The metaprogram file is formatted more nicely and does not get deleted automatically.
1367
1391
--
1368
-
-- onAfterMeta = function( luaCode ) -- [Optional] Here you can modify and return the Lua code before it's written to 'pathOut'.
1369
-
-- onBeforeMeta = function( ) -- [Optional] Called before the metaprogram runs.
1370
-
-- onError = function( error ) -- [Optional] You can use this to get traceback information. 'error' is the same value as what is returned from processFile().
1392
+
-- onAfterMeta = function( luaString ) -- [Optional] Here you can modify and return the Lua code before it's written to 'pathOut'.
1393
+
-- onBeforeMeta = function( ) -- [Optional] Called before the metaprogram runs.
1394
+
-- onError = function( error ) -- [Optional] You can use this to get traceback information. 'error' is the same value as what is returned from processFile().
1371
1395
--
1372
1396
processFile=processFile,
1373
1397
@@ -1378,14 +1402,14 @@ local lib = {
1378
1402
-- info: Table with various information, or a message if an error happened. See 'ProcessInfo' for more info.
1379
1403
--
1380
1404
-- params: Table with these fields:
1381
-
-- code = luaCode -- [Required]
1382
-
-- pathMeta = pathForMetaprogram -- [Optional] You can inspect this temporary output file if an error ocurrs in the metaprogram.
1405
+
-- code = luaString -- [Required]
1406
+
-- pathMeta = pathForMetaprogram -- [Optional] You can inspect this temporary output file if an error ocurrs in the metaprogram.
1383
1407
--
1384
-
-- addLineNumbers = boolean -- [Optional] Add comments with line numbers to the output.
1385
-
-- debug = boolean -- [Optional] Debug mode. The metaprogram file is formatted more nicely and does not get deleted automatically.
1408
+
-- addLineNumbers = boolean -- [Optional] Add comments with line numbers to the output.
1409
+
-- debug = boolean -- [Optional] Debug mode. The metaprogram file is formatted more nicely and does not get deleted automatically.
1386
1410
--
1387
-
-- onBeforeMeta = function( ) -- [Optional] Called before the metaprogram runs.
1388
-
-- onError = function( error ) -- [Optional] You can use this to get traceback information. 'error' is the same value as the second returned value from processString().
1411
+
-- onBeforeMeta = function( ) -- [Optional] Called before the metaprogram runs.
1412
+
-- onError = function( error ) -- [Optional] You can use this to get traceback information. 'error' is the same value as the second returned value from processString().
0 commit comments