-
Notifications
You must be signed in to change notification settings - Fork 388
Change CecilSymbolHelper to instance class #846
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
Change CecilSymbolHelper to instance class #846
Conversation
update fork
Update fork
Update fork
Update fork
Update fork
Update fork
Update fork
Update fork
Update fork
Update fork
Update fork
Update fork
Update fork
Update fork
Update fork
Update fork
Update fork
Update fork
Update fork
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.
Some nits generally looks good!Thanks!
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.
Another round, missed some style nits sorry and thanks
{ | ||
// Create single instance, we cannot collide because we use full method name as key | ||
CompilerGeneratedBranchesToExclude = new ConcurrentDictionary<string, int[]>(); | ||
_compilerGeneratedBranchesToExclude = new ConcurrentDictionary<string, int[]>(); |
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.
We can initialize inline and remove ctor, before we wanted to be sure single thread initialization, now we use an singleton instance so no double init issue. Keep the comment above pls.
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.
Done
src/coverlet.console/Program.cs
Outdated
@@ -88,7 +90,8 @@ static int Main(string[] args) | |||
logger, | |||
serviceProvider.GetService<IInstrumentationHelper>(), | |||
fileSystem, | |||
sourceTranslator); | |||
sourceTranslator, |
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.
can we use serviceProvider.GetRequiredService
everywhere where we don't use variable for more than one place?I see some assignation above, sourceTranslator
is used in more than one place?
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.
Done
closes #774