Comments (5)
I will have a look at this tomorrow, but I think it should work will nullables (or I can hopefully make it work easily).
Thanks for the detailed description and example. This helps a lot!
from sphinx-csharp.
Ok the regex was not quite correct, but I think it should work now. I've added your example class as a test and it works for me.
Please pip install again.
Does this solve your problem?
from sphinx-csharp.
Yes, the ExampleClass looks fine now, thanks for that!
I just tried it also with an extension class in combination with the nullable variables. The same warnings are coming up for that one and the display doesn't fit yet either.
/// <summary>
/// A static extension class.
/// </summary>
public static class FooBarExtension
{
/// <summary>
/// Just an extension method.
/// </summary>
/// <param name="nullableBool">A nullable bool.</param>
/// <returns>A nullable int.</returns>
public static int? Foo(this bool? nullableBool)
{
return null;
}
/// <summary>
/// Another extension method.
/// </summary>
/// <param name="normalBool">A normal bool.</param>
/// <returns>A normal int.</returns>
public static int Bar(this bool normalBool)
{
if (normalBool)
return 1;
return 0;
}
}
Can you take a look at that one as well?
from sphinx-csharp.
I will have a look at it over the next few days.
Although it looks more complicated because the ?
is no longer at the end of the type, maybe because of the doxygen output.
from sphinx-csharp.
It seems to only be an issue when the function is static and returns a nullable. Pointers work fine strangely:
Somehow the input to the package already has the ?
before the type, despite the doxyen xml having the correct ordering.
Not sure why this is happening. Unfortunately, I don't have much time to look into this, so it will not be supported at the moment.
from sphinx-csharp.
Related Issues (8)
- Publish to PyPI HOT 6
- issue with resolving internal links when used with myst_parser HOT 2
- missing link to overloaded method HOT 2
- Missing 'inline' keyword, C# 7.0 Tuples HOT 16
- issue with `const` keyword HOT 9
- wrong link when attribute name is the same as type / class name HOT 3
- Failed to find xref for custom objects HOT 2
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 sphinx-csharp.