ws-cleanup-types: archive, audio, data, font, image, layered, music, playlist, subtitle, vector, video: annotations, casts, one value per re-assignment where the solver loses the type

This commit is contained in:
4DBug committed 2026-10-31 11:00:25 -05:00
1 parent dc98aec2ec
commit f459b2dcdf
44 files changed
+172 -119

No files matched your search

+1 -1
View File
@@ -136,7 +136,7 @@ end
-- ------------------------------------------------------------------------------------------------ decode
local function parsePls(ls: { string }, base: string?, baseScheme: string?, warnings: { string }): Result
local res: Result = { kind = "playlist", format = "pls", entries = {}, warnings = warnings, meta = {} }
local files, titles, lengths = {}, {}, {}
local files: { [number]: string }, titles: { [number]: string }, lengths: { [number]: string } = {}, {}, {}
local declared = nil
for _, line in ls do
local l = Text.trim(line)
+1 -1
View File
@@ -121,7 +121,7 @@ function Xspf.decode(r: Bytes.Reader, opts: DecodeOptions?): (Types.Playlist?, E
for _, list in elements(root, "trackList") do
for i, track in elements(list, "track") do
local tbase, tscheme = withXmlBase(track, pbase, pscheme)
local locs = {}
local locs: { string } = {}
for _, l in elements(track, "location") do
local s = trim(Xml.text(l))
if s ~= "" then