Skip to content

Conversation

fesily
Copy link
Contributor

@fesily fesily commented May 15, 2023

No description provided.

---@field os string
---@field arch string
---@field os 'Windows'|'Linux'|'OSX'|'BSD'|'POSIX'|'Other'
---@field arch 'x86'|'x64'|'arm'|'arm64'|'arm64be'|'ppc'|'ppc64'|'ppc64le'|'mips'|'mipsel'|'mips64'|'mips64el'|string
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason you left |string at the end of this union?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some branches support other architectures

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a valid reason. Thanks for the explanation.

local profile = {}

---@param mode string
---@param func fun(L:thread,samples:integer,vmst:string)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you insert some spaces into your fun() annotations in this file?

---@param func fun(L: thread, samples: integer, vmst: string)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feature is not supported by formater. You can contribute these changes into the pull.Thanks

function profile.stop()
end

---@overload fun(th:thread,fmt:string,depth:integer)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above

function util.tracemc(tr)
end

---@overload fun(exitno:integer):integer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

---@overload fun(exitno: integer): integer

@sumneko
Copy link
Collaborator

sumneko commented May 16, 2023

我对LuaJIT不太了解,这个PR是否已准备好合并了?

@fesily
Copy link
Contributor Author

fesily commented May 16, 2023

我对LuaJIT不太了解,这个PR是否已准备好合并了?

可以合并了

@sumneko sumneko merged commit a1508ec into LuaLS:master May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants