Package com.google.javascript.rhino
Class IR
java.lang.Object
com.google.javascript.rhino.IR
An AST construction helper class
-
Method Summary
Modifier and TypeMethodDescriptionstatic Node
static Node
static Node
static Node
static Node
arrayPattern
(Node... keys) static Node
arrowFunction
(Node name, Node params, Node body) static Node
static Node
"invalid input: '&'invalid input: '&'="static Node
assignCoalesce
(Node expr1, Node expr2) "??="static Node
"||="static Node
static Node
bigint
(BigInteger b) static Node
bitwiseAnd
(Node expr1, Node expr2) "invalid input: '&'"static Node
block()
static Node
static Node
static Node
static Node
static Node
static Node
static Node
static Node
static Node
static Node
static Node
static Node
computedProp
(Node key, Node value) static Node
static Node
static Node
continueNode
(Node name) static Node
continueOptChainCall
(Node target, Node... args) static Node
continueOptChainGetelem
(Node target, Node elem) static Node
continueOptChainGetprop
(Node target, String prop) static Node
static Node
declaration
(Node lhs, Node value, Token type) static Node
declaration
(Node lhs, Token type) static Node
defaultCase
(Node body) static Node
static Node
static Node
empty()
static Node
"=="static Node
static Node
exprResult
(Node expr) static Node
static Node
static Node
static Node
static Node
">="static Node
static Node
static Node
static Node
static Node
static Node
static Node
static Node
static Node
importNode
(Node name, Node importSpecs, Node moduleIdentifier) static Node
importStar
(String name) static Node
static Node
static Node
static Node
iterSpread
(Node expr) static Node
static Node
static Node
static Node
static Node
"<"static boolean
It isn't possible to always determine if a detached node is a expression, so make a best guess.static boolean
It isn't possible to always determine if a detached node is a expression, so make a best guess.static Node
memberFieldDef
(String name, Node value) static Node
memberFunctionDef
(String name, Node function) static Node
static Node
"!="static Node
static Node
static Node
static Node
nullNode()
static Node
number
(double d) static Node
static Node
objectPattern
(Node... keys) static Node
objectRest
(Node target) static Node
objectSpread
(Node expr) static Node
static Node
static Node
static Node
static Node
quotedStringKey
(String s, Node value) static Node
static Node
static Node
static Node
returnNode
(Node expr) static Node
rightShift
(Node expr1, Node expr2) ">>"static Node
static Node
script()
static Node
static Node
static Node
static Node
"==="static Node
"!=="static Node
startOptChainCall
(Node target, Node... args) static Node
startOptChainGetelem
(Node target, Node elem) static Node
startOptChainGetprop
(Node target, String prop) static Node
static Node
static Node
static Node
static Node
static Node
switchNode
(Node cond, Node... cases) static Node
static Node
templateLiteralString
(@Nullable String cooked, String raw) static Node
templateLiteralSubstitution
(Node child) static Node
thisNode()
static Node
static Node
trueNode()
static Node
static Node
tryCatchFinally
(Node tryBody, Node catchNode, Node finallyBody) static Node
tryFinally
(Node tryBody, Node finallyBody) static Node
static Node
static Node
static Node
static Node
static Node
-
Method Details
-
empty
-
export
-
importNode
-
importStar
-
function
-
arrowFunction
-
paramList
-
root
-
block
-
block
-
block
-
block
-
script
-
script
-
script
-
var
-
var
-
let
-
let
-
constNode
-
declaration
-
declaration
-
returnNode
-
returnNode
-
yieldNode
-
await
-
throwNode
-
exprResult
-
ifNode
-
ifNode
-
doNode
-
whileNode
-
forIn
-
forNode
-
switchNode
-
caseNode
-
defaultCase
-
label
-
labelName
-
tryFinally
-
tryCatch
-
tryCatchFinally
-
catchNode
-
breakNode
-
breakNode
-
continueNode
-
continueNode
-
call
-
startOptChainCall
-
continueOptChainCall
-
newNode
-
name
-
startOptChainGetprop
-
continueOptChainGetprop
-
getprop
-
getprop
-
startOptChainGetelem
-
continueOptChainGetelem
-
getelem
-
delprop
-
assign
-
hook
-
in
-
comma
-
and
-
or
-
coalesce
-
not
-
lt
"<" -
ge
">=" -
eq
"==" -
ne
"!=" -
sheq
"===" -
shne
"!==" -
voidNode
-
neg
-
pos
-
cast
-
inc
-
dec
-
add
-
sub
-
assignOr
"||=" -
assignAnd
"invalid input: '&'invalid input: '&'=" -
assignCoalesce
"??=" -
bitwiseAnd
"invalid input: '&'" -
rightShift
">>" -
objectlit
-
objectPattern
-
arrayPattern
-
computedProp
-
propdef
-
arraylit
-
arraylit
-
regexp
-
regexp
-
string
-
stringKey
-
stringKey
-
quotedStringKey
-
templateLiteral
-
templateLiteralString
-
templateLiteralSubstitution
-
iterRest
-
objectRest
-
iterSpread
-
objectSpread
-
superNode
-
getterDef
-
setterDef
-
memberFieldDef
-
memberFunctionDef
-
number
-
bigint
-
thisNode
-
trueNode
-
falseNode
-
nullNode
-
typeof
-
importMeta
-
mayBeStatement
It isn't possible to always determine if a detached node is a expression, so make a best guess. -
mayBeExpression
It isn't possible to always determine if a detached node is a expression, so make a best guess.
-