@@ -160,35 +160,35 @@ private void HandleClassDeclaration(SyntaxNodeAnalysisContext context)
160160 {
161161 var node = ( ClassDeclarationSyntax ) context . Node ;
162162
163- this . HandleDeclaration ( context , node , node . GetLocation ( ) ) ;
163+ this . HandleDeclaration ( context , node , node . Identifier . GetLocation ( ) ) ;
164164 }
165165
166166 private void HandleStructDeclaration ( SyntaxNodeAnalysisContext context )
167167 {
168168 var node = ( StructDeclarationSyntax ) context . Node ;
169169
170- this . HandleDeclaration ( context , node , node . GetLocation ( ) ) ;
170+ this . HandleDeclaration ( context , node , node . Identifier . GetLocation ( ) ) ;
171171 }
172172
173173 private void HandleEnumDeclaration ( SyntaxNodeAnalysisContext context )
174174 {
175175 var node = ( EnumDeclarationSyntax ) context . Node ;
176176
177- this . HandleDeclaration ( context , node , node . GetLocation ( ) ) ;
177+ this . HandleDeclaration ( context , node , node . Identifier . GetLocation ( ) ) ;
178178 }
179179
180180 private void HandleFieldDeclaration ( SyntaxNodeAnalysisContext context )
181181 {
182182 var node = ( FieldDeclarationSyntax ) context . Node ;
183183
184- this . HandleDeclaration ( context , node , node . GetLocation ( ) ) ;
184+ this . HandleDeclaration ( context , node , node . Declaration . GetLocation ( ) ) ;
185185 }
186186
187187 private void HandlePropertyDeclaration ( SyntaxNodeAnalysisContext context )
188188 {
189189 var node = ( PropertyDeclarationSyntax ) context . Node ;
190190
191- this . HandleDeclaration ( context , node , node . GetLocation ( ) ) ;
191+ this . HandleDeclaration ( context , node , node . Identifier . GetLocation ( ) ) ;
192192 }
193193
194194 private void HandleDeclaration ( SyntaxNodeAnalysisContext context , SyntaxNode node , params Location [ ] locations )
0 commit comments