Comments (7)
What about this: if the base type is also in the project, but it has the omit flag, include its members
from fsharp.formatting.
@tpetricek I was trying to implement this, how can I get a FSharpEntity from a Type? FSharp.Entity exposes BaseType but not BaseEntity
from fsharp.formatting.
Not sure - perhaps @dsyme or other compiler service experts like @7sharp9 would know?
from fsharp.formatting.
You can use the new API to get an F# representation of the assembly and then iterate through the members maybe?
from fsharp.formatting.
I'm new to both FCS and FSharp.Formatting, can you please explain a little bit better what you mean?
from fsharp.formatting.
Use the NamedEntity property on FSharpType (the type may have GenericArguments).
In that API, NamedEntity could be better renamed to TypeDefinition. It is valid whether the type is a generic instantiation or not.
from fsharp.formatting.
Thanks, that works. But there's a problem, when there is no base type, .BaseType
blows up (https://github.com/fsharp/FSharp.Compiler.Service/blob/5886727331041f4e00faf049b7cf52f6952ca55e/src/fsharp/vs/Typed.fs#L226), and there's no way to check beforehand (at least that I can find)
from fsharp.formatting.
Related Issues (20)
- discussion: multi target F# libraries (IL, WebSharper, Fable, etc.)
- discussion: offering back links form API pages to the other documentation pages?
- Need to update repo's nuget API key HOT 2
- Package references cannot be resolved when trying to build API documentation programmatically HOT 4
- Modernize the default theme HOT 37
- Some displayed examples may have broken indendation HOT 11
- Add how-to for the most typical scenario HOT 2
- List users of this tool HOT 1
- CSharp library not used for generating API docs HOT 7
- Function signature tooltips include attributes for arguments that make the tooltip unreadable HOT 5
- Directory.Build.props is ignored if there are no projects or solutions HOT 3
- SEO-optimization for new theme HOT 4
- Suggestion: init command
- Dark mode borders: too much contrast?
- Namespace description overflows content box
- Output font size on mobile safari is too big HOT 6
- Using testcontainers in a fsx script gives wrong output HOT 7
- Create a keyword/glossary site map
- add .dib notebook support HOT 6
- --watch expectation 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 fsharp.formatting.