-
Notifications
You must be signed in to change notification settings - Fork 158
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
Getting ReturnType from ApiDocMember without Html already embedded #708
Comments
I was coming to ask the same question. I tried to look at the information available via the debugger and I don't think there is one yet. The HTML have some benefit of having the link generated to the referenced type: <code><span><a href="/reference/nacara-core-types-pagecontext.html">PageContext</a> array</span></code> However, in my case the generated HTML doesn't look like I want it to be. So I need to parse it to extract the information from it. It would be nice to have the needed information to generate the HTML by ourself. |
This is kind of possible to have access to the returnType information but this is not trivial. Given en entity: // Cast it to this sub-type
let entity = entity.Symbol :?> FSharpMemberOrFunctionOrValue
// All the type information are available in
entity.FullType
// But this also includes the parameters for the function, so this means we need to skip the parameters to only extract the returnType information.
// The number of parameters can be found from
let (ApiDocMemberDetails(usageHtml, paramTypes, returnType, modifiers, typars, baseType, location, compiledName)) =
entity.Details
let parameterCount = paramTypes.Length |
@TheAngryByrd @MangelMaxime Are you after a textual representation of the type or the On the whole the ApiDocsModel doesn't make |
@MangelMaxime I added the FCS object for a bunch of the items here: #727 |
Hello @dsyme, With the current situation of Nacara, I am after the instance of This is needed in order to:
Right now in Nacara, all the code shown at the top of the pages are generated from the FCS types like The only exception is the |
Yup, this is done in #727, release should be coming through the pipe. |
Is there a way to get the ReturnType name for a
ApiDocMember
signature without it already being wrapped in html?Actual
Desired
The text was updated successfully, but these errors were encountered: