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:
1 parent
dc98aec2ec
commit
f459b2dcdf
44 files changed
+172
-119
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user