Skip to content

RenameSymbolAsync misses indirectly accessed private fields  #157

@jaredpar

Description

@jaredpar

Consider the following code:

class B
{
  internal C Owner { get {... } }
}

class C
{
   private int id;

   void M(B b) 
   {
      Console.WriteLine(b.Owner.id);
   }
}

If Renamer.RenameSymbol is run on the fieldC.id the rename operation will not update the reference in the expression b.Owner.id.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions