Class JsFileLineParser
java.lang.Object
com.google.javascript.jscomp.deps.JsFileLineParser
- Direct Known Subclasses:
DepsFileRegexParser
,JsFileRegexParser
Base class for classes that parse JavaScript sources on a line-by-line basis. Strips comments
from files and records all parsing errors.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setShortcutMode
(boolean mode) In shortcut mode, the file line parser can stop reading early if it thinks it found enough information.
-
Field Details
-
PARSE_ERROR
-
-
Constructor Details
-
JsFileLineParser
Constructor.- Parameters:
errorManager
- Parse error handler.
-
-
Method Details
-
setShortcutMode
public void setShortcutMode(boolean mode) In shortcut mode, the file line parser can stop reading early if it thinks it found enough information. For example, many parsers assume that dependency information never shows up after "real" code. -
didParseSucceed
public boolean didParseSucceed()
-