-
Notifications
You must be signed in to change notification settings - Fork 7
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
Issues with nullable value types #8
Comments
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! |
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. |
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? |
I will have a look at it over the next few days. |
Hi rogerbarton,
first of all thanks for you great job improving/providing a Sphinx domain for C#. I'm using it currently with DoxyGen and Breathe in a project and getting some issues with the nullable value types of C# 8.0 (https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/nullable-value-types).
This is an example C# code for describing the problem.
In Sphinx I'm using the following Breathe directive to create the HTML output:
During the build I'm getting the following warnings:
And the output looks like this:
The types of the properties are not getting parsed properly and also the "highlighting" of them differs from the other stuff in case of a method.
I'm not totally sure if this issue is completly solvable by this domain, but I hope you can help me.
The text was updated successfully, but these errors were encountered: