public class JavaScriptParser
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JavaScriptParser.ParseResult
Result from parser.
|
(package private) static class |
JavaScriptParser.SyntaxMesssage
Syntax error message.
|
Constructor and Description |
---|
JavaScriptParser(com.google.javascript.jscomp.parsing.parser.Parser.Config.Mode languageMode,
boolean strict)
Constructs a new parser.
|
Modifier and Type | Method and Description |
---|---|
JavaScriptParser.ParseResult |
parse(java.lang.String contents,
SourceLocation.SourceLocationMaker sourceLocationMaker)
Parses the given JavaScript code.
|
public JavaScriptParser(com.google.javascript.jscomp.parsing.parser.Parser.Config.Mode languageMode, boolean strict)
public JavaScriptParser.ParseResult parse(java.lang.String contents, SourceLocation.SourceLocationMaker sourceLocationMaker)
contents
- the codeCopyright © 2009-2019 Aarhus University