From 45d2263243b409ad9a01c83ab17d4ec9adce8515 Mon Sep 17 00:00:00 2001 From: tdurieux Date: Tue, 7 Mar 2017 13:23:24 +0100 Subject: [PATCH] fixed files form Closure #68 --- .../com/google/javascript/jscomp/parsing/JsDocInfoParser.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/Closure/68/com/google/javascript/jscomp/parsing/JsDocInfoParser.java b/projects/Closure/68/com/google/javascript/jscomp/parsing/JsDocInfoParser.java index 26a56a7..167e2cb 100644 --- a/projects/Closure/68/com/google/javascript/jscomp/parsing/JsDocInfoParser.java +++ b/projects/Closure/68/com/google/javascript/jscomp/parsing/JsDocInfoParser.java @@ -865,9 +865,9 @@ boolean parse() { } break; } + } token = eatTokensUntilEOL(); - } continue retry; } } @@ -1706,6 +1706,7 @@ private Node parseBasicTypeExpression(JsDocToken token) { } } + restoreLookAhead(token); return reportGenericTypeSyntaxWarning(); } @@ -1758,6 +1759,7 @@ private Node parseFunctionType(JsDocToken token) { // NOTE(nicksantos): We're not implementing generics at the moment, so // just throw out TypeParameters. if (token != JsDocToken.LP) { + restoreLookAhead(token); return reportTypeSyntaxWarning("msg.jsdoc.missing.lp"); }