dotlin-org/dotlin

Make `dartPathOf`, `relativeDartPathOf` have an input of `DartLibraryElement` instead of `IrFile`

wilkomanger opened this issue · 0 comments

Currently we're creating a "fake" IrFile in DartImportsLowering.kt:227 because of this. Move these methods out of DartNameGenerator and make them have an input of DartLibraryElement (maybe Path?), creating wrappers for IrFiles.

When this is done, remove DartIrFile constructor function from DartIrProvider.kt