Optionalbase: ValueGet the number of arguments passed to the function.
The number of arguments.
Get all arguments passed to the function.
The arguments passed to the function.
Get the base object of the invocation, which is the object that the method is called on.
The base object, or undefined if it is a regular function call.
Get the original line of code in the source file.
All values in one node share the same code.
The original
Get the id of the vertex in the graph database this value represents.
InternalThe syntax component identifier, i.e. ArkAssignStmt.
The identifier.
Get the node in the graph database this value is associated with.
Value only represents the AST of the node in the database, use this
method to get the complete node, see CodeNode | CodeNode for
more information.
FIXME: All values should be associated with CodeNode, so no type check is
performed here.
The complete node in the graph database this value is associated with.
Values that cannot be parsed from AST will be marked as unsupported.
Usually, only InvalidValue should be marked as unsupported.
Whether this value is supported by the current implementation.
Get the target of the invocation, which is the function name that is being called.
The target function name.
By default, the value has an invalid type, see InvalidType.
The type of this value.
ProtectedelementsImplement this method to return all children of this value.
This method is used to get the stream representation of this value.
It depends on the implementation of the elements method.
See Stream for stream operations.
A stream of values.
Invocation expression.
This can be regular function call, or method call on an object. If it is a method call, use InvokeExpr.getBase |
getBaseto get the object, and InvokeExpr.getTarget |getTargetto get the method name. Otherwise, InvokeExpr.getBase |getBasewill returnundefined, and you can use InvokeExpr.getTarget |getTargetto get the function name.