Comments (1)
looking further into this, I think this will require a major rewrite of how Graindoc works.
Currently, we parse the file in a separate stage, and output everything for the file directly into a string.
We would need to:
- If we want this feature to be fast we either need to cache documentation or generate docs for each function separately (The former would probably be prefered as we resolve docs from other files)
- We would need to create a map between decl's and their doc info that can be easily accessed from the lsp
from grain.
Related Issues (20)
- Grainfmt: Experiment with print_comment_range refactor
- Grainfmt: Better API for concat_map
- Grainfmt: Support `formatter-ignore` in more places
- Grainfmt: Comment lost when preceding a number HOT 1
- Formatter: Pun aliases when possible
- Formatter: Missing trailing comma on inline record fields
- Stdlib: Add `String.map` and `String.flatMap` functions
- Formatter: disallow double-breaks on attributes
- Docs: Add variant docs to Json data structure
- Cleanup: Use graindoc `Markdown` lib in lsp
- Lsp: Provide context for `use XXX.*`
- stdlib: Add `input` function HOT 2
- language: look into overloading the `array[x]` syntax to support multiple number types.
- Rework: `toString` to use a buffer HOT 1
- Decrease initial memory pages to 1 HOT 3
- Implement LEB128 stdlib HOT 1
- stdlib: Add a `TOML` library
- stdlib/runtime: Implement a basic parsing library
- Improve compilation of large list/array literals
- Redundant Operations in stdlib Set.intersect HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grain.