diff --git a/src/components/tbc.host/Components/IncrementalCompiler/Fixers/AmbiguousInvocation/AmbiguousInvocationFixer.cs b/src/components/tbc.host/Components/IncrementalCompiler/Fixers/AmbiguousInvocation/AmbiguousInvocationFixer.cs index fff6f4f..a5395d6 100644 --- a/src/components/tbc.host/Components/IncrementalCompiler/Fixers/AmbiguousInvocation/AmbiguousInvocationFixer.cs +++ b/src/components/tbc.host/Components/IncrementalCompiler/Fixers/AmbiguousInvocation/AmbiguousInvocationFixer.cs @@ -111,8 +111,8 @@ private CSharpCompilation TryFix(CSharpCompilation compilation, List ((MemberAccessExpressionSyntax)inv.Expression).Name.WithIdentifier( SyntaxFactory.Identifier(newIdentifier))); - var from = inv.FindNode(inv.Span); - var to = newInv.FindNode(newInv.Span); + var from = inv.FindNode(inv.Span, getInnermostNodeForTie: true); + var to = newInv.FindNode(newInv.Span, getInnermostNodeForTie: true); tree = tree.GetRoot().ReplaceNode(from, to).SyntaxTree; }