mirror of
https://github.com/revanced/smali.git
synced 2025-05-28 03:40:12 +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 {
|
||||
private int lexerErrors = 0;
|
||||
public String getErrorHeader(RecognitionException e) {
|
||||
lexerErrors++;
|
||||
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();
|
||||
|
||||
if (parser.getNumberOfSyntaxErrors() > 0 || lexer.getNumberOfLexerErrors() > 0) {
|
||||
if (parser.getNumberOfSyntaxErrors() > 0 || lexer.getNumberOfSyntaxErrors() > 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user