mirror of
https://github.com/revanced/smali.git
synced 2025-05-29 12:20:11 +02:00
Get rid of the unneeded getNumberOfLexerErrors() method in the lexer
git-svn-id: https://smali.googlecode.com/svn/trunk@724 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
parent
86df593d85
commit
48a8e040a1
@ -79,15 +79,9 @@ lexer grammar smaliLexer;
|
|||||||
}
|
}
|
||||||
|
|
||||||
@lexer::members {
|
@lexer::members {
|
||||||
private int lexerErrors = 0;
|
|
||||||
public String getErrorHeader(RecognitionException e) {
|
public String getErrorHeader(RecognitionException e) {
|
||||||
lexerErrors++;
|
|
||||||
return getSourceName()+"["+ e.line+","+e.charPositionInLine+"]";
|
return getSourceName()+"["+ e.line+","+e.charPositionInLine+"]";
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getNumberOfLexerErrors() {
|
|
||||||
return lexerErrors;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**********************************************************
|
/**********************************************************
|
||||||
|
@ -262,7 +262,7 @@ public class main {
|
|||||||
|
|
||||||
smaliParser.smali_file_return result = parser.smali_file();
|
smaliParser.smali_file_return result = parser.smali_file();
|
||||||
|
|
||||||
if (parser.getNumberOfSyntaxErrors() > 0 || lexer.getNumberOfLexerErrors() > 0) {
|
if (parser.getNumberOfSyntaxErrors() > 0 || lexer.getNumberOfSyntaxErrors() > 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user