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 Nodestatic Nodestatic Nodestatic Nodestatic NodearrayPattern(Node... keys) static NodearrowFunction(Node name, Node params, Node body) static Nodestatic Node"invalid input: '&'invalid input: '&'="static NodeassignCoalesce(Node expr1, Node expr2) "??="static Node"||="static Nodestatic Nodebigint(BigInteger b) static NodebitwiseAnd(Node expr1, Node expr2) "invalid input: '&'"static Nodeblock()static Nodestatic Nodestatic Nodestatic Nodestatic Nodestatic Nodestatic Nodestatic Nodestatic Nodestatic Nodestatic Nodestatic NodecomputedProp(Node key, Node value) static Nodestatic Nodestatic NodecontinueNode(Node name) static NodecontinueOptChainCall(Node target, Node... args) static NodecontinueOptChainGetelem(Node target, Node elem) static NodecontinueOptChainGetprop(Node target, String prop) static Nodestatic Nodedeclaration(Node lhs, Node value, Token type) static Nodedeclaration(Node lhs, Token type) static NodedefaultCase(Node body) static Nodestatic Nodestatic Nodeempty()static Node"=="static Nodestatic NodeexprResult(Node expr) static Nodestatic Nodestatic Nodestatic Nodestatic Node">="static Nodestatic Nodestatic Nodestatic Nodestatic Nodestatic Nodestatic Nodestatic Nodestatic NodeimportNode(Node name, Node importSpecs, Node moduleIdentifier) static NodeimportStar(String name) static Nodestatic Nodestatic Nodestatic NodeiterSpread(Node expr) static Nodestatic Nodestatic Nodestatic Nodestatic Node"<"static booleanIt isn't possible to always determine if a detached node is a expression, so make a best guess.static booleanIt isn't possible to always determine if a detached node is a expression, so make a best guess.static NodememberFieldDef(String name, Node value) static NodememberFunctionDef(String name, Node function) static Nodestatic Node"!="static Nodestatic Nodestatic Nodestatic NodenullNode()static Nodenumber(double d) static Nodestatic NodeobjectPattern(Node... keys) static NodeobjectRest(Node target) static NodeobjectSpread(Node expr) static Nodestatic Nodestatic Nodestatic Nodestatic NodequotedStringKey(String s, Node value) static Nodestatic Nodestatic Nodestatic NodereturnNode(Node expr) static NoderightShift(Node expr1, Node expr2) ">>"static Nodestatic Nodescript()static Nodestatic Nodestatic Nodestatic Node"==="static Node"!=="static NodestartOptChainCall(Node target, Node... args) static NodestartOptChainGetelem(Node target, Node elem) static NodestartOptChainGetprop(Node target, String prop) static Nodestatic Nodestatic Nodestatic Nodestatic Nodestatic NodeswitchNode(Node cond, Node... cases) static Nodestatic NodetemplateLiteralString(@Nullable String cooked, String raw) static NodetemplateLiteralSubstitution(Node child) static NodethisNode()static Nodestatic NodetrueNode()static Nodestatic NodetryCatchFinally(Node tryBody, Node catchNode, Node finallyBody) static NodetryFinally(Node tryBody, Node finallyBody) static Nodestatic Nodestatic Nodestatic Nodestatic Nodestatic 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.
-