Class JsFileFullParser
java.lang.Object
com.google.javascript.jscomp.deps.JsFileFullParser
A parser that extracts dependency information from a .js file, including goog.require,
goog.provide, goog.module, import/export statements, and JSDoc annotations related to dependency
management.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
The dependency information contained in a .js source file.static interface
Interface for reporting errors. -
Method Summary
Modifier and TypeMethodDescriptionstatic JsFileFullParser.FileInfo
parse
(String code, String filename, JsFileFullParser.Reporter reporter) Parses a JavaScript file for dependencies and annotations
-
Method Details
-
parse
public static JsFileFullParser.FileInfo parse(String code, String filename, JsFileFullParser.Reporter reporter) Parses a JavaScript file for dependencies and annotations- Returns:
- empty info if a syntax error was encountered
-