Skip to content
Snippets Groups Projects
Commit 471d5f9f authored by dgelessus's avatar dgelessus
Browse files

Rename checkResult parameters to make a bit more sense

parent 1fac8017
Branches
Tags
No related merge requests found
...@@ -41,7 +41,7 @@ public class Parser implements IParser ...@@ -41,7 +41,7 @@ public class Parser implements IParser
@Override @Override
public Map<PositionedNode, SourcecodeRange> getMapping() { return this.mapping; } public Map<PositionedNode, SourcecodeRange> getMapping() { return this.mapping; }
private void checkResult(Object elementToCheck, List<Object> beginNode, List<Object> endNode) { private void checkResult(Object elementToCheck, List<Object> beginNodeList, List<Object> endNodeList) {
if (elementToCheck instanceof List<?>) { if (elementToCheck instanceof List<?>) {
/* /*
* special case: this is a list of nodes, for example an identifier * special case: this is a list of nodes, for example an identifier
...@@ -61,8 +61,8 @@ public class Parser implements IParser ...@@ -61,8 +61,8 @@ public class Parser implements IParser
final PositionedNode node = (PositionedNode) elementToCheck; final PositionedNode node = (PositionedNode) elementToCheck;
if (!this.getMapping().containsKey(node)) { if (!this.getMapping().containsKey(node)) {
final int begin = findBeginPos(beginNode, node); final int begin = findBeginPos(beginNodeList, node);
int end = findEndPos(endNode); int end = findEndPos(endNodeList);
if (end == -1) end = begin; if (end == -1) end = begin;
final SourcecodeRange range = new SourcecodeRange(begin, end); final SourcecodeRange range = new SourcecodeRange(begin, end);
......
...@@ -49,7 +49,7 @@ public class Parser implements IParser ...@@ -49,7 +49,7 @@ public class Parser implements IParser
@Override @Override
public Map<PositionedNode, SourcecodeRange> getMapping() { return this.mapping; } public Map<PositionedNode, SourcecodeRange> getMapping() { return this.mapping; }
private void checkResult(Object elementToCheck, List<Object> beginNode, List<Object> endNode) { private void checkResult(Object elementToCheck, List<Object> beginNodeList, List<Object> endNodeList) {
if (elementToCheck instanceof List<?>) { if (elementToCheck instanceof List<?>) {
/* /*
* special case: this is a list of nodes, for example an identifier * special case: this is a list of nodes, for example an identifier
...@@ -69,8 +69,8 @@ public class Parser implements IParser ...@@ -69,8 +69,8 @@ public class Parser implements IParser
final PositionedNode node = (PositionedNode) elementToCheck; final PositionedNode node = (PositionedNode) elementToCheck;
if (!this.getMapping().containsKey(node)) { if (!this.getMapping().containsKey(node)) {
final int begin = findBeginPos(beginNode, node); final int begin = findBeginPos(beginNodeList, node);
int end = findEndPos(endNode); int end = findEndPos(endNodeList);
if (end == -1) end = begin; if (end == -1) end = begin;
final SourcecodeRange range = new SourcecodeRange(begin, end); final SourcecodeRange range = new SourcecodeRange(begin, end);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment