Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
general
stups
SableCC STUPS
Commits
edace4a3
Commit
edace4a3
authored
Mar 09, 2017
by
hansen
Browse files
change visibility of some methods to protected
parent
160958cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/resources/org/sablecc/sablecc/parser.txt
View file @
edace4a3
...
...
@@ -55,9 +55,9 @@ public class Parser implements IParser
private Map<PositionedNode, SourcecodeRange> mapping = new HashMap<PositionedNode, SourcecodeRange>();
public Map<PositionedNode, SourcecodeRange> getMapping() { return this.mapping; }
pr
iva
te void checkResult(Object elementToCheck) {
checkResult(elementToCheck, false);
}
pr
otec
te
d
void checkResult(Object elementToCheck) {
checkResult(elementToCheck, false);
}
protected void checkResult(Object elementToCheck, boolean slurp) {
...
...
@@ -110,7 +110,7 @@ public class Parser implements IParser
}
pr
ivate
int findBeginPos(final ArrayList list,
pr
otected
int findBeginPos(final ArrayList list,
PositionedNode n) {
Object first = list.get(0);
if (!(first instanceof PositionedNode) && !(first instanceof IToken)) {
...
...
@@ -141,7 +141,7 @@ public class Parser implements IParser
}
pr
ivate
int findEndPos(final ArrayList list) {
pr
otected
int findEndPos(final ArrayList list) {
Object last = list.get(list.size() - 1);
if (!(last instanceof PositionedNode) && !(last instanceof IToken)) {
final List list2 = (List) last;
...
...
@@ -159,7 +159,7 @@ public class Parser implements IParser
return item.getEndIndex();
}
pr
ivate
int findIndex(final IToken token) {
pr
otected
int findIndex(final IToken token) {
final List<IToken> list = this.lex.getTokenList();
for (int i = list.size() - 1; i >= 0; i--) {
...
...
@@ -171,13 +171,13 @@ public class Parser implements IParser
return -1;
}
pr
ivate
SourcePosition createBeginPos(final int index) {
pr
otected
SourcePosition createBeginPos(final int index) {
final List<IToken> list = this.lex.getTokenList();
final IToken token = list.get(index);
return new SourcePosition(token.getLine(), token.getPos());
}
pr
ivate
SourcePosition createEndPos(final int index) {
pr
otected
SourcePosition createEndPos(final int index) {
final List<IToken> list = this.lex.getTokenList();
final IToken token = list.get(index);
return new SourcePosition(token.getLine(), token.getPos()
...
...
@@ -529,7 +529,7 @@ Macro:ParserGotoTail
$
Macro:ParserErrorsHeader
pr
ivate
static String[] errorMessages;
pr
otected
static String[] errorMessages;
/* {
$
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment