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

Types that contain other types causes the analyzer to throw an exception #9

Closed
craigktreasure opened this issue Oct 2, 2023 · 0 comments

Comments

@craigktreasure
Copy link
Owner

Version: 0.2.0

Code sample:

public class MyClass
{
    private record MyRecord() { }
}

Error:

CSC : error AD0001: Analyzer 'Treasure.Analyzers.MemberOrder.MemberOrderAnalyzer' threw an exception of type 'System.InvalidOperationException' wit
h message 'Unable to get member name.''.

The error message could be improved to make the issue more apparent.

craigktreasure added a commit that referenced this issue Oct 3, 2023
Fixed an issue with swapping comments while trying to maintain whitespace.

Fixes #9
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