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

Merge cleaned-up ExpressionStringBuilder into StringBuilderExtensions #882

Merged
merged 9 commits into from
Aug 9, 2019

Conversation

stakx
Copy link
Contributor

@stakx stakx commented Aug 9, 2019

... by turning its methods into a bunch of stringBuilder.AppendExpression(expression) methods, of which only one is publicly exposed. This PR is a fairly large refactoring, so it's done in quite a few commits.

@stakx stakx added this to the 4.13.0 milestone Aug 9, 2019
@stakx stakx merged commit d8050e4 into devlooped:master Aug 9, 2019
@stakx stakx deleted the expressionstringbuilder branch August 9, 2019 00:24
ishimko pushed a commit to ishimko/moq4 that referenced this pull request Sep 2, 2019
…ons` (devlooped#882)

* Convert `ExpressionStringBuilder` to extension methods
* Chain `StringBuilder` operations
* General-purpose `AppendCommaSeparated` method reduces code duplication
* Inline a few one-line methods
* Simplify enclosed comma-separated lists code pattern
* Refactor more existing code to use `AppendCommaSeparated`
* Use more regular method names
* Merge into `StringBuilderExtensions`
   ... after ensuring that the (previous) `ExpressionStringBuilder` code
   file only contains `AppendExpression` methods at the top level (every-
   thing else is turned into local functions).
* Inline event add/remove formatting code
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.

None yet

1 participant