lexer: `get_token` is now protected
[nit.git] / src / parser / xss / lexer.xss
index e8961ca..3bb9e2e 100644 (file)
@@ -73,8 +73,9 @@ $ end foreach
                return result
        end
 
-       # Get a token, or null if it is discarded
-       private fun get_token: nullable Token
+       # Primitive method to return a token, or return null if it is discarded
+       # Is used to implement `peek` and `next`
+       protected fun get_token: nullable Token
        do
                var dfa_state = 0