Skip to content

Commit

Permalink
Don't forget to duplicate qualified name of Import
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed Dec 28, 2023
1 parent a9d793c commit b856ecf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ object Import {
keepIdentifiers: Boolean = false
): Module =
copy(
name = name.duplicate(keepLocations, keepMetadata, keepDiagnostics, keepIdentifiers),
location = if (keepLocations) location else None,
passData =
if (keepMetadata) passData.duplicate else new MetadataStorage(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private static String findTestMethodName() {
* @return string representation of the IR
*/
private static String simplifyIR(IR ir, boolean noIds, boolean noLocations, boolean lessDocs) {
String txt = ir.pretty();
String txt = ir.duplicate(!noLocations, true, true, !noIds).pretty();
if (noIds) {
txt =
txt.replaceAll(
Expand Down

0 comments on commit b856ecf

Please sign in to comment.