Skip to content

Commit 6267946

Browse files
committed
C#: Revert breaking change
1 parent f5cfd93 commit 6267946

File tree

1 file changed

+2
-2
lines changed
  • csharp/extractor/Semmle.Extraction.CIL/Entities

1 file changed

+2
-2
lines changed

csharp/extractor/Semmle.Extraction.CIL/Entities/File.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class File : LabelledEntity, IFile
1616

1717
public File(Context cx, string path) : base(cx)
1818
{
19-
this.path = path;
19+
this.path = Semmle.Extraction.Entities.File.PathAsDatabaseString(path);
2020
ShortId = new StringId(Semmle.Extraction.Entities.File.PathAsDatabaseId(path));
2121
}
2222

@@ -27,7 +27,7 @@ public override IEnumerable<IExtractionProduct> Contents
2727
var parent = cx.CreateFolder(System.IO.Path.GetDirectoryName(path));
2828
yield return parent;
2929
yield return Tuples.containerparent(parent, this);
30-
yield return Tuples.files(this, Semmle.Extraction.Entities.File.PathAsDatabaseString(path), System.IO.Path.GetFileNameWithoutExtension(path), System.IO.Path.GetExtension(path).Substring(1));
30+
yield return Tuples.files(this, path, System.IO.Path.GetFileNameWithoutExtension(path), System.IO.Path.GetExtension(path).Substring(1));
3131
}
3232
}
3333

0 commit comments

Comments
 (0)