-
-
Notifications
You must be signed in to change notification settings - Fork 32
Fix 91 #306
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
Merged
Fix 91 #306
Changes from 11 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
5375302
OUT OF MEMORY when trying to run all tests
supersaiyansubtlety 0aaab89
make methods that trace back to non-jar methods non-renamable
supersaiyansubtlety fc555c3
checkstyle
supersaiyansubtlety ca78792
filter out unreferenced classNames for LibrariesJarIndex and Combined…
supersaiyansubtlety ac2eda2
add ReferenceIndex::getFieldsReferencedBy
supersaiyansubtlety ff25b77
exclude java/io/PrintStream from JavaClassProvider
supersaiyansubtlety 6d338d5
update asm (AnalyzerExceptions persist)
supersaiyansubtlety bdc2f8e
use ClasspathClassProvider instead of JavaClassProvider to avoid Anal…
supersaiyansubtlety 6194b10
stop excluding Object from InheritanceIndex and update tests; fix #91
supersaiyansubtlety ec7edc3
update TODO
supersaiyansubtlety 5d05f86
try finding child node instead of assuming it's first
supersaiyansubtlety 3720f72
add clarifying comment to UN_ANALYZABLE_CLASS_NAMES
supersaiyansubtlety 2032807
add jar index javadocs
supersaiyansubtlety 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
42 changes: 42 additions & 0 deletions
42
enigma/src/main/java/org/quiltmc/enigma/api/analysis/index/jar/CombinedJarIndex.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,42 @@ | ||
| package org.quiltmc.enigma.api.analysis.index.jar; | ||
|
|
||
| import org.quiltmc.enigma.api.class_provider.ProjectClassProvider; | ||
| import org.quiltmc.enigma.impl.analysis.index.AbstractJarIndex; | ||
|
|
||
| import java.util.Collection; | ||
|
|
||
| public class CombinedJarIndex extends AbstractJarIndex { | ||
supersaiyansubtlety marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| public CombinedJarIndex( | ||
| EntryIndex entryIndex, InheritanceIndex inheritanceIndex, ReferenceIndex referenceIndex, | ||
| BridgeMethodIndex bridgeMethodIndex, JarIndexer... otherIndexers | ||
| ) { | ||
| super(entryIndex, inheritanceIndex, referenceIndex, bridgeMethodIndex, otherIndexers); | ||
| } | ||
|
|
||
| /** | ||
| * Creates an empty index, configured to use all built-in indexers. | ||
| * @return the newly created index | ||
| */ | ||
| public static CombinedJarIndex empty() { | ||
| EntryIndex entryIndex = new EntryIndex(); | ||
| ReferenceIndex referenceIndex = new ReferenceIndex(); | ||
| InheritanceIndex inheritanceIndex = new InheritanceIndex(entryIndex); | ||
| LambdaIndex lambdaIndex = new LambdaIndex(); | ||
| return new CombinedJarIndex( | ||
| entryIndex, inheritanceIndex, referenceIndex, | ||
| new BridgeMethodIndex(entryIndex, inheritanceIndex, referenceIndex), | ||
| // required by MappingValidator | ||
| lambdaIndex | ||
| ); | ||
| } | ||
|
|
||
| @Override | ||
| public String getTranslationKey() { | ||
| return "progress.jar.indexing.combined"; | ||
| } | ||
|
|
||
| @Override | ||
| public Collection<String> getIndexableClassNames(ProjectClassProvider classProvider) { | ||
| return classProvider.getClassNames(); | ||
| } | ||
| } | ||
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.