Merge pull request #2679 from tehbone/master

Fix placement of @members in Javascript target lexers
This commit is contained in:
Terence Parr 2019-12-15 09:02:08 -08:00 committed by GitHub
commit b8e65bfca9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -232,7 +232,8 @@ YYYY/MM/DD, github id, Full name, email
2019/09/10, amorimjuliana, Juliana Amorim, juu.amorim@gmail.com
2019/09/17, kaz, Kazuki Sawada, kazuki@6715.jp
2019/09/28, lmy269, Mingyang Liu, lmy040758@gmail.com
2019/10/29, tehbone, Tabari Alexander, tehbone@gmail.com
2019/10/31, a-square, Alexei Averchenko, lex.aver@gmail.com
2019/11/11, foxeverl, Liu Xinfeng, liuxf1986[at]gmail[dot]com
2019/11/17, felixn, Felix Nieuwenhuizhen, felix@tdlrali.com
2019/11/18, mlilback, Mark Lilback, mark@lilback.com
2019/11/18, mlilback, Mark Lilback, mark@lilback.com

View File

@ -815,6 +815,7 @@ var decisionsToDFA = atn.decisionToState.map( function(ds, index) { return new a
function <lexer.name>(input) {
<if(superClass)><superClass><else>antlr4.Lexer<endif>.call(this, input);
this._interp = new antlr4.atn.LexerATNSimulator(this, atn, decisionsToDFA, new antlr4.PredictionContextCache());
<namedActions.members>
return this;
}
@ -850,8 +851,6 @@ Object.defineProperty(<lexer.name>.prototype, "atn", {
<lexer.name>.prototype.grammarFileName = "<lexer.grammarFileName>";
<namedActions.members>
<dumpActions(lexer, "", actionFuncs, sempredFuncs)>
exports.<lexer.name> = <lexer.name>;