Skip to content

Commit

Permalink
more aptly termed
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlogic committed Jan 28, 2024
1 parent fec6f60 commit b89540b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/arb/expressions/Expression.java
Original file line number Diff line number Diff line change
Expand Up @@ -786,16 +786,16 @@ public Reference evaluateName(int depth, int startPos)
nextCharacter();
}
String identifier = expression.substring(startPos, position).trim();
String index = evaluateConditionalSquareBracketedIndex(depth);
String index = evaluatePossibleSquareBracketedIndex(depth);
if (index == null)
{
index = evaluateConditionalSubscriptedIndex(depth);
index = evaluatePossibleSubscriptedIndex(depth);
}
return new Reference(identifier,
index);
}

private String evaluateConditionalSubscriptedIndex(int depth)
private String evaluatePossibleSubscriptedIndex(int depth)
{
StringBuilder index = new StringBuilder();

Expand All @@ -812,7 +812,7 @@ private boolean nextCharacterIsSubscript(int depth)
return nextCharacterIs(depth, SUBSCRIPT_CHARACTERS);
}

private String evaluateConditionalSquareBracketedIndex(int depth)
private String evaluatePossibleSquareBracketedIndex(int depth)
{
String index = null;
if (nextCharacterIs(depth, '['))
Expand Down

0 comments on commit b89540b

Please sign in to comment.