Skip to content

Commit

Permalink
Rename method to reflect visitor pattern naming schemes
Browse files Browse the repository at this point in the history
  • Loading branch information
NebelNidas committed Apr 5, 2024
1 parent 1ec7fff commit 89fa0e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private void ensureDecompiled() {
}

decompiler.decompileContext();
tokenCollector.get().addTokensToIndex(index);
tokenCollector.get().accept(index);
}

private class ResultSaver implements IResultSaver {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ private void addReference(Token token, Entry<?> entry, Entry<?> context) {
tokens.add(token);
}

public void addTokensToIndex(SourceIndex index) {
public void accept(SourceIndex index) {
for (Token token : tokens) {
if (declarations.get(token) != null) {
index.addDeclaration(token, declarations.get(token));
Expand Down

0 comments on commit 89fa0e5

Please sign in to comment.