-
Notifications
You must be signed in to change notification settings - Fork 1.1k
use new zinc 1.8 api for VirtualFile #18137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
smarter
merged 10 commits into
scala:main
from
dotty-staging:topic/zinc-api-1.8.0-upgrade-only
Jul 23, 2023
Merged
Changes from 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
a7cec5f
use new zinc api for virtualfile
bishabosha 34a5e45
use compiler impl of protobuf for presentation compiler
bishabosha 2458b8f
remain compatible with Zinc 1.3
bishabosha 95ed582
cache source file for TASTy sources
bishabosha 7dfb0cf
create fallback virtualfile and warn
bishabosha 8f128fd
always fallback when missing virtual file
bishabosha 5fde72c
only use hashmap lookup to map to virtualfile
bishabosha aa27580
remove placeholders map
bishabosha 246dfc4
simplify file comparison
bishabosha e3de91c
address comments
bishabosha File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.util.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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.