
dotty.tools.xsbt.FallbackPathBasedFile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scala3-sbt-bridge Show documentation
Show all versions of scala3-sbt-bridge Show documentation
sbt compiler bridge for Dotty
package dotty.tools.xsbt;
import dotty.tools.dotc.util.SourceFile;
/**A basic implementation of PathBasedFile that is only used when
* the real virtual file can not be found.
*
* See FallbackVirtualFile for more details.
*/
public class FallbackPathBasedFile extends FallbackVirtualFile implements xsbti.PathBasedFile {
public FallbackPathBasedFile(SourceFile sourceFile) {
super(sourceFile);
}
public java.nio.file.Path toPath() {
return sourceFile.file().jpath();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy