Jason Malinowski

@jasonmalinowski
98 Followers
102 Following
87 Posts
Microsoft software developer working on Roslyn, Visual Studio, and Visual Studio Code.
GitHubhttps://github.com/jasonmalinowski
@malwareminigun Oh good it wasn’t just me.
@bradwilson Any change will cause us to re-run the CompilationStartAction callback. And since I didn't quite make it clear; you can use the context given in the compilation start action to register further things. For example: https://github.com/dotnet/roslyn-analyzers/blob/d6e7d82e631f0b4c2519284a1c12ed9eb945a388/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/Tasks/UseValueTasksCorrectly.cs#L93 See how this is checking for some types to exist, and only if it does, it registers something further against the compilation context.
roslyn-analyzers/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/Tasks/UseValueTasksCorrectly.cs at d6e7d82e631f0b4c2519284a1c12ed9eb945a388 · dotnet/roslyn-analyzers

Contribute to dotnet/roslyn-analyzers development by creating an account on GitHub.

GitHub
@bradwilson That way you'll do the top-level checks first, and you can register the additional checks after they pass. And to get the assembly-level attributes, compilation.Assembly.GetAttributes()
@bradwilson Have your analyzer register a CompliationStartAction, which gives you the compilation. You can get the attributes for the compilation to check for what you need. Then inside that action, register the Symbol/SyntaxNode actions as needed.

AT&T: your security is important to us, which is why we're sending you this text telling you a device has been replaced. If it wasn't you, call us.

Me: thanks for letting me know I replaced that device...two days ago.

Today I learned that C# lets you await dynamic. I was happier not knowing.

I must not reply. Replying is the mind-killer. Replying is the little-death that brings total obliteration.

I will face the bad take. I will permit it to pass over me and through me. And when it has gone past I will turn the inner eye to see its path. Where the take has gone there will be nothing. Only I will remain.

I tried a new way to mess with telemarketers: assuming the call is one that the federal do not call registry would cover, remind them that this call is a violation of federal law and then ask them why I should do business with companies that violate federal law. I got a few seconds of silence from it.
Our chickadee bird house has eggs!
@KirillOsenkov In your defense, it took them a few months.