Skip to content

Commit

Permalink
Merge pull request DotNetAnalyzers#166 from daking2014/TemplateComments
Browse files Browse the repository at this point in the history
Comments in blank template
  • Loading branch information
daking2014 committed Jul 20, 2015
2 parents 3ee5e88 + e70fde4 commit e7ebade
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ namespace NewAnalyzerTemplate
[DiagnosticAnalyzer(LanguageNames.CSharp)]
public class NewAnalyzerTemplateAnalyzer : DiagnosticAnalyzer
{
//The SupportedDiagnostics property stores an ImmutableArray containing any diagnostics that can be reported by this analyzer
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
{
get
Expand All @@ -30,6 +31,8 @@ public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
}
}

//The Initialize method is used to register methods to perform analysis of the Syntax Tree when there is a change to the Syntax Tree
//The AnalysisContext parameter has members, such as RegisterSyntaxNodeAction, that perform the registering mentioned above
public override void Initialize(AnalysisContext context)
{

Expand Down

0 comments on commit e7ebade

Please sign in to comment.