Skip to content
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

Write-CUClassDiagram error if multiple constructor #110

Open
LaurentLienhard opened this issue Jul 12, 2019 · 1 comment
Open

Write-CUClassDiagram error if multiple constructor #110

LaurentLienhard opened this issue Jul 12, 2019 · 1 comment

Comments

@LaurentLienhard
Copy link
Contributor

When you generate a diagram for the simple class with 2 constructors

class ClassName {
    [System.String]$Param1
    [System.String]$Param2
    [System.String]$Param3

    ClassName ([System.String]$Param1,[System.String]$Param2) {
        Write-Verbose "Param 1 = $($Param1)"
        Write-Verbose "Param 2 = $($Param2)"
    }

    ClassName ([System.String]$Param3) {
        Write-Verbose "Param 3 = $($Param3)"
    }
}

There's an error on the diagram

image

@LaurentLienhard
Copy link
Contributor Author

In the Out-CUPSGraph function the parameter $InputObject seems good
The function find 2 constructors and the second does have only one parameter
image

it seems that it is after this scriptblock that the problem appears
$Graph = Graph -ScriptBlock line 631

I hope it helps you a little

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant