fix: remove unnecessary return statements

This commit is contained in:
Camilo Roca 2020-03-15 16:04:28 +01:00
parent b2473f7564
commit 5f6b7de72d
1 changed files with 1 additions and 6 deletions

View File

@ -8,11 +8,7 @@ const {Lexer} = require('./Lexer');
const {Interval} = require('./IntervalSet'); const {Interval} = require('./IntervalSet');
// this is just to keep meaningful parameter types to Parser // this is just to keep meaningful parameter types to Parser
class TokenStream { class TokenStream {}
constructor() {
return this;
}
}
/** /**
* This implementation of {@link TokenStream} loads tokens from a * This implementation of {@link TokenStream} loads tokens from a
@ -70,7 +66,6 @@ class BufferedTokenStream extends TokenStream {
* <ul> * <ul>
*/ */
this.fetchedEOF = false; this.fetchedEOF = false;
return this;
} }
mark() { mark() {