-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Share more code between "Generate Constructor", "Add Parameter" and "Initialize Member from Parameter" #76359
Share more code between "Generate Constructor", "Add Parameter" and "Initialize Member from Parameter" #76359
Conversation
@JoeRobich @ToddGrun ptal. |
@@ -103,12 +110,13 @@ public static async Task<Solution> AddParameterAsync( | |||
if (syntaxFacts is null) | |||
continue; | |||
|
|||
var semanticDocument = await SemanticDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope. removing.
src/Analyzers/Core/CodeFixes/AddParameter/AddParameterService.cs
Outdated
Show resolved
Hide resolved
src/Analyzers/Core/CodeFixes/AddParameter/AddParameterService.cs
Outdated
Show resolved
Hide resolved
src/Analyzers/Core/CodeFixes/AddParameter/AddParameterService.cs
Outdated
Show resolved
Hide resolved
@@ -60,12 +60,10 @@ protected internal sealed class State | |||
public ImmutableDictionary<string, string> ParameterToNewPropertyMap { get; private set; } | |||
public bool IsContainedInUnsafeType { get; private set; } | |||
|
|||
private State(TService service, SemanticDocument document, NamingRule fieldNamingRule, NamingRule propertyNamingRule, NamingRule parameterNamingRule) | |||
private State(TService service, SemanticDocument document, NamingRule parameterNamingRule) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Precursor to #76352