Giter Club home page Giter Club logo

Comments (6)

liwangqian avatar liwangqian commented on September 25, 2024

well, your issue is really detailed, thanks again, I will try to fix it later.

from luacoderassist.

labraxoid avatar labraxoid commented on September 25, 2024

@liwangqian CASE 1 and CASE 2 are resolved but CASE 3 partially:

bug007

Thank you for your efforts.

from luacoderassist.

labraxoid avatar labraxoid commented on September 25, 2024

about CASE 2
now all fields and methods for simple tables are defined specifically, but for namedTypes from completions it works wrong, this is important because, as I noted above, I make the Corona completions, for Corona community. I attached edited love.json. You can replace original with it and check next situation:

bug009

love.json.zip

from luacoderassist.

liwangqian avatar liwangqian commented on September 25, 2024

@labraxoid For the Case 3 you describe up, we use the first definition of a symbol and will not change it's definition even thought we redefined it after some codes, so this case will not be resolved.

And, for the second case, the API description file xxx.json, should add "kind": "constructor" to the function to help figuring out that, it's a constructor, and we will create a new instance instead.

For example:
image

from luacoderassist.

labraxoid avatar labraxoid commented on September 25, 2024

in CASE 3 is not about redefining, it is about different ways of function definition in Lua. The variable 'foo' is nil, we do not define it, we only declare. If we use way function foo() ... end LCA defines that variable 'foo' is function and we can see in outline all variables inside function but if we use foo = function() ... end LCA defines that variable 'foo' is function, defines type of function return but without definition variables inside. This is not a common situation, so if the implementation is difficult, then it can be omitted.

Thank you for extension of API completions. I will try it in next version.

from luacoderassist.

liwangqian avatar liwangqian commented on September 25, 2024

@labraxoid Try the Ver2.2.8, CASE 3 is fixed in this version.

from luacoderassist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.