public final class JSParserOptions extends Record
JSLanguageOptions to ensure that code is only shared between contexts that
agree on all these options (but may differ in others that do not affect code and shared state).JSLanguageOptions| Constructor and Description |
|---|
JSParserOptions(boolean strict,
boolean scripting,
boolean shebang,
int ecmaScriptVersion,
boolean syntaxExtensions,
boolean constAsVar,
boolean functionStatementError,
boolean dumpOnError,
boolean emptyStatements,
boolean annexB,
boolean allowBigInt,
boolean classFields,
boolean importAttributes,
boolean privateFieldsIn,
boolean topLevelAwait,
boolean v8Intrinsics) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowBigInt() |
boolean |
annexB() |
boolean |
classFields() |
boolean |
constAsVar() |
boolean |
dumpOnError() |
int |
ecmaScriptVersion() |
boolean |
emptyStatements() |
boolean |
equals(Object o) |
static JSParserOptions |
fromLanguageOptions(JSLanguageOptions options) |
boolean |
functionStatementError() |
int |
hashCode() |
boolean |
importAttributes() |
boolean |
privateFieldsIn() |
boolean |
scripting() |
boolean |
shebang() |
boolean |
strict() |
boolean |
syntaxExtensions() |
boolean |
topLevelAwait() |
String |
toString() |
boolean |
v8Intrinsics() |
JSParserOptions |
withStrict(boolean strict) |
public JSParserOptions(boolean strict,
boolean scripting,
boolean shebang,
int ecmaScriptVersion,
boolean syntaxExtensions,
boolean constAsVar,
boolean functionStatementError,
boolean dumpOnError,
boolean emptyStatements,
boolean annexB,
boolean allowBigInt,
boolean classFields,
boolean importAttributes,
boolean privateFieldsIn,
boolean topLevelAwait,
boolean v8Intrinsics)
public static JSParserOptions fromLanguageOptions(JSLanguageOptions options)
public JSParserOptions withStrict(boolean strict)
public boolean strict()
public boolean scripting()
public boolean shebang()
public int ecmaScriptVersion()
public boolean syntaxExtensions()
public boolean constAsVar()
public boolean functionStatementError()
public boolean dumpOnError()
public boolean emptyStatements()
public boolean annexB()
public boolean allowBigInt()
public boolean classFields()
public boolean importAttributes()
public boolean privateFieldsIn()
public boolean topLevelAwait()
public boolean v8Intrinsics()