Skip to content

add bare minimum implementation of diagnostic analyzer that uses compiler analyzer driver - #477

Merged
heejaechang merged 6 commits into
dotnet:masterfrom
heejaechang:diagnosticrefactoring
Feb 13, 2015
Merged

add bare minimum implementation of diagnostic analyzer that uses compiler analyzer driver#477
heejaechang merged 6 commits into
dotnet:masterfrom
heejaechang:diagnosticrefactoring

Conversation

@heejaechang

Copy link
Copy Markdown
Contributor

added bare minimum implementation of diagnostic analyzer that uses compiler analyzer driver.

literally it is bare minimum implementation. so there is no state or anything to boost performance. it always do everything from scratch.

but, it proves that as long as given interface is implemented, all existing IDE features will continue working. also, since it generates compilation end action diagnostics, those will just work as well. this can be used as a prototype to see what experience will look like once we actually support that scenario.

@heejaechang

Copy link
Copy Markdown
Contributor Author

@mavasani @srivatsn @shyamnamboodiripad can you guys take a look?

fixed typo and removed stale comments
…manager and what must be cached by caller.

GetXXX method is used for information that manager can cache or already cached. CreateXXX method is used for information that manager can't cache.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should this be instead renamed to "GetDiagnosticAnalyzers" as it isn't creating them for each invocation?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

not sure what you meant. GetProjectDiagnosticsAsync generate project wide diagnostics.

@mavasani

Copy link
Copy Markdown
Contributor

👍 Great!

@srivatsn

Copy link
Copy Markdown
Contributor

👍

heejaechang pushed a commit that referenced this pull request Feb 13, 2015
add bare minimum implementation of diagnostic analyzer that uses compiler analyzer driver
@heejaechang
heejaechang merged commit 7d94b07 into dotnet:master Feb 13, 2015
dibarbet pushed a commit that referenced this pull request Aug 18, 2026
Support fixing a single diagnostic
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.

4 participants