-
Notifications
You must be signed in to change notification settings - Fork 11
Implement DocumentationProvider #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- added C3DocumentationProvider for hover docs for function declarations and variable declarations
println("---") | ||
|
||
if (element is C3FuncDef) return generateFuncDefDoc(element) | ||
if (element is C3LocalDeclAfterType) return generateVarDeclDoc(element) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not picking up the globals, could that be made to work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as of now i don't see a way to detect top level elements as it win't even recognize the module declaration or imports. the other changes are finished i just can't get around to getting this to work
- added documentation for const declarations - fixed function docs not displaying correctly in default module - added highlighting for doc comments - added basic completion for doc comments - added check for existing function parameters for doc comments - updated regex for pattern matching in doc comments
The free text before the params would be nice to add later. Thank you for this! |
This breaks: <*
Pop a value who's type is known. If the type is incorrect, this
will still pop the element.
@param $Type : "The type we assume the value has"
@return "The last value as the type given"
@return? TYPE_MISMATCH, NO_MORE_ELEMENT
*> |
This also fails: <*
Push an element to the front of the list.
@param value : "The value to push to the list"
*>
macro void AnyList.push_front(&self, value)
{
self.insert_at(0, value);
} |
this fails because i forgot to check for macros. it currently only checks for functions |
Variables

Functions
