Skip to content

Commit a13a1e7

Browse files
committed
Fix rename pass not handling some declarations due to early return.
1 parent d9e738f commit a13a1e7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Generator/Passes/RenamePass.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ public override bool VisitDeclaration(Declaration decl)
141141
if (decl.Name == null)
142142
return true;
143143

144-
return Rename(decl);
144+
Rename(decl);
145+
return true;
145146
}
146147

147148
private bool Rename(Declaration decl)
@@ -345,6 +346,8 @@ public override bool Rename(Declaration decl, out string newName)
345346
newName = null;
346347
return false;
347348
}
349+
350+
public override string ToString() => $"RegexRenamePass: {Pattern}";
348351
}
349352

350353
public enum RenameCasePattern

0 commit comments

Comments
 (0)