Move to an AST like data structure #76

Merged
Aire-One merged 39 commits from feat/refactor-ast into master 2023-08-03 21:03:16 +02:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit dbeb536393 - Show all commits

View File

@ -163,8 +163,8 @@ describe("Teal type definition Printer", function()
},
[[
-- This file was auto-generated.
local deeper = require("path.dep.deeper")
local dep = require("dep")
local type deeper = require("path.dep.deeper")
local type dep = require("dep")
local record Module
end

View File

@ -32,7 +32,7 @@ end
local function render_require(dependencies: { string : string }): string
local generated = ""
for dependency, path in utils.pairsByKeys(dependencies) do
generated = generated .. string.format("local %s = require(\"%s\")\n", dependency, path)
generated = generated .. string.format("local type %s = require(\"%s\")\n", dependency, path)
end
return generated
end