public final class GraalJSParserHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
COLON_MODULE |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkFunctionSyntax(JSContext context,
JSParserOptions parserOptions,
String parameterList,
String body,
boolean generator,
boolean async,
String sourceName) |
static Expression |
parseExpression(JSContext context,
com.oracle.truffle.api.source.Source truffleSource,
JSParserOptions parserOptions) |
static FunctionNode |
parseModule(JSContext context,
com.oracle.truffle.api.source.Source truffleSource,
JSParserOptions parserOptions) |
static FunctionNode |
parseScript(JSContext context,
com.oracle.truffle.api.source.Source truffleSource,
JSParserOptions parserOptions) |
static FunctionNode |
parseScript(JSContext context,
com.oracle.truffle.api.source.Source truffleSource,
JSParserOptions parserOptions,
boolean eval,
boolean evalInFunction,
Scope evalScope,
String prologue,
String epilogue) |
static FunctionNode |
parseScript(JSContext context,
com.oracle.truffle.api.source.Source truffleSource,
JSParserOptions parserOptions,
boolean eval,
boolean evalInFunction,
Scope evalScope,
String prologue,
String epilogue,
List<String> argumentNames) |
static String |
parseToJSON(String code,
String name,
boolean includeLoc,
JSContext context) |
public static final String COLON_MODULE
public static FunctionNode parseScript(JSContext context, com.oracle.truffle.api.source.Source truffleSource, JSParserOptions parserOptions)
public static FunctionNode parseScript(JSContext context, com.oracle.truffle.api.source.Source truffleSource, JSParserOptions parserOptions, boolean eval, boolean evalInFunction, Scope evalScope, String prologue, String epilogue)
public static FunctionNode parseScript(JSContext context, com.oracle.truffle.api.source.Source truffleSource, JSParserOptions parserOptions, boolean eval, boolean evalInFunction, Scope evalScope, String prologue, String epilogue, List<String> argumentNames)
public static FunctionNode parseModule(JSContext context, com.oracle.truffle.api.source.Source truffleSource, JSParserOptions parserOptions)
public static Expression parseExpression(JSContext context, com.oracle.truffle.api.source.Source truffleSource, JSParserOptions parserOptions)
public static void checkFunctionSyntax(JSContext context, JSParserOptions parserOptions, String parameterList, String body, boolean generator, boolean async, String sourceName)