File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
src/SourceBrowser.Generator/DocumentWalkers Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -191,6 +191,10 @@ public Token ProcessIdentifier(SyntaxToken token)
191191 var parentSymbol = _model . GetDeclaredSymbol ( token . Parent ) ;
192192 if ( parentSymbol != null )
193193 {
194+ if ( parentSymbol . Kind == SymbolKind . Parameter )
195+ {
196+ parentSymbol = parentSymbol . ContainingSymbol ;
197+ }
194198 return ProcessDeclarationToken ( token , parentSymbol ) ;
195199 }
196200
Original file line number Diff line number Diff line change @@ -191,6 +191,10 @@ public Token ProcessIdentifier(SyntaxToken token)
191191 var parentSymbol = _model . GetDeclaredSymbol ( token . Parent ) ;
192192 if ( parentSymbol != null )
193193 {
194+ if ( parentSymbol . Kind == SymbolKind . Parameter )
195+ {
196+ parentSymbol = parentSymbol . ContainingSymbol ;
197+ }
194198 return ProcessDeclarationToken ( token , parentSymbol ) ;
195199 }
196200
You can’t perform that action at this time.
0 commit comments