Package dotty.tools.xsbt
Class FallbackVirtualFile
java.lang.Object
xsbti.BasicVirtualFileRef
dotty.tools.xsbt.FallbackVirtualFile
- All Implemented Interfaces:
xsbti.VirtualFile,xsbti.VirtualFileRef
- Direct Known Subclasses:
FallbackPathBasedFile
public class FallbackVirtualFile
extends xsbti.BasicVirtualFileRef
implements xsbti.VirtualFile
A basic implementation of VirtualFile that is only used when
the real virtual file can not be found.
This has a very basic implementation of contentHash that is almost certainly colliding more than the implementation
in Zinc. It does not matter anyway as Zinc will recompile the associated source file, because it did not recieve the
same virtual file back.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class xsbti.BasicVirtualFileRef
equals, hashCode, id, name, names, toString, withIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface xsbti.VirtualFileRef
id, name, names
-
Field Details
-
sourceFile
protected final dotty.tools.dotc.util.SourceFile sourceFile
-
-
Constructor Details
-
FallbackVirtualFile
public FallbackVirtualFile(dotty.tools.dotc.util.SourceFile sourceFile)
-
-
Method Details
-
input
- Specified by:
inputin interfacexsbti.VirtualFile
-
contentHash
public long contentHash()- Specified by:
contentHashin interfacexsbti.VirtualFile
-