diff options
Diffstat (limited to 'src/cuchaz/enigma/analysis/SourceIndex.java')
| -rw-r--r-- | src/cuchaz/enigma/analysis/SourceIndex.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cuchaz/enigma/analysis/SourceIndex.java b/src/cuchaz/enigma/analysis/SourceIndex.java index ad94cf0..531f3e0 100644 --- a/src/cuchaz/enigma/analysis/SourceIndex.java +++ b/src/cuchaz/enigma/analysis/SourceIndex.java | |||
| @@ -79,16 +79,16 @@ public class SourceIndex | |||
| 79 | return token; | 79 | return token; |
| 80 | } | 80 | } |
| 81 | 81 | ||
| 82 | public void add( AstNode node, Entry entry ) | 82 | public void add( AstNode node, Entry deobfEntry ) |
| 83 | { | 83 | { |
| 84 | m_tokens.put( getToken( node ), entry ); | 84 | m_tokens.put( getToken( node ), deobfEntry ); |
| 85 | } | 85 | } |
| 86 | 86 | ||
| 87 | public void addDeclaration( AstNode node, Entry entry ) | 87 | public void addDeclaration( AstNode node, Entry deobfEntry ) |
| 88 | { | 88 | { |
| 89 | Token token = getToken( node ); | 89 | Token token = getToken( node ); |
| 90 | m_tokens.put( token, entry ); | 90 | m_tokens.put( token, deobfEntry ); |
| 91 | m_declarations.put( entry, token ); | 91 | m_declarations.put( deobfEntry, token ); |
| 92 | } | 92 | } |
| 93 | 93 | ||
| 94 | public Token getToken( int pos ) | 94 | public Token getToken( int pos ) |
| @@ -120,9 +120,9 @@ public class SourceIndex | |||
| 120 | return m_tokens.keySet(); | 120 | return m_tokens.keySet(); |
| 121 | } | 121 | } |
| 122 | 122 | ||
| 123 | public Token getDeclarationToken( Entry entry ) | 123 | public Token getDeclarationToken( Entry deobfEntry ) |
| 124 | { | 124 | { |
| 125 | return m_declarations.get( entry ); | 125 | return m_declarations.get( deobfEntry ); |
| 126 | } | 126 | } |
| 127 | 127 | ||
| 128 | private int toPos( int line, int col ) | 128 | private int toPos( int line, int col ) |