Code Monkey home page Code Monkey logo

Comments (5)

rogerbarton avatar rogerbarton commented on July 19, 2024

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.

rogerbarton avatar rogerbarton commented on July 19, 2024

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.

N-b-dy avatar N-b-dy commented on July 19, 2024

Yes, the ExampleClass looks fine now, thanks for that!

ExampleClass

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;
        }
    }

ExtensionClass

Can you take a look at that one as well?

from sphinx-csharp.

rogerbarton avatar rogerbarton commented on July 19, 2024

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.

rogerbarton avatar rogerbarton commented on July 19, 2024

It seems to only be an issue when the function is static and returns a nullable. Pointers work fine strangely:
image

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.