-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34a5e45
commit 2458b8f
Showing
18 changed files
with
279 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
compiler/src/dotty/tools/dotc/sbt/interfaces/IncrementalCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package dotty.tools.dotc.sbt.interfaces; | ||
|
||
import dotty.tools.dotc.interfaces.SourceFile; | ||
|
||
import java.util.EnumSet; | ||
import java.nio.file.Path; | ||
|
||
/* User code should not implement this interface, it is intended to be a wrapper around xsbti.AnalysisCallback. */ | ||
public interface IncrementalCallback { | ||
default void api(SourceFile sourceFile, xsbti.api.ClassLike classApi) { | ||
} | ||
|
||
default void startSource(SourceFile sourceFile) { | ||
} | ||
|
||
default void mainClass(SourceFile sourceFile, String className) { | ||
} | ||
|
||
default boolean enabled() { | ||
return false; | ||
} | ||
|
||
default void usedName(String className, String name, EnumSet<xsbti.UseScope> useScopes) { | ||
} | ||
|
||
default void binaryDependency(Path onBinaryEntry, String onBinaryClassName, String fromClassName, | ||
SourceFile fromSourceFile, xsbti.api.DependencyContext context) { | ||
} | ||
|
||
default void classDependency(String onClassName, String sourceClassName, xsbti.api.DependencyContext context) { | ||
} | ||
|
||
default void generatedLocalClass(SourceFile source, Path classFile) { | ||
} | ||
|
||
default void generatedNonLocalClass(SourceFile source, Path classFile, String binaryClassName, | ||
String srcClassName) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package dotty.tools.xsbt; | ||
|
||
import xsbti.VirtualFile; | ||
|
||
interface AbstractZincFile { | ||
VirtualFile underlying(); | ||
} |
Oops, something went wrong.