Skip to content

Conversation

@Keboo
Copy link
Collaborator

@Keboo Keboo commented Apr 26, 2022

When an identifier is invalid, the generator will now strip out all invalid characters.

Fixes #142

@Keboo Keboo requested a review from adamhewitt627 April 26, 2022 21:43
if (!SyntaxFacts.IsValidIdentifier(testName))
{
StringBuilder sb = new(testName.Length);
for (int i = 0; i < testName.Length; i++)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thoughts on making this a:

testName.SkipWhile(NotStart).Where(IsPart)

@Keboo Keboo merged commit 7f6c1f8 into moq:master May 3, 2022
@Keboo Keboo deleted the fix142 branch May 3, 2022 05:12
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

Successfully merging this pull request may close these issues.

New source generator does not handle generic parameters dependencies

2 participants