Capítulo 378 de 859

Chapter 378: AssignNode

Core Idea

These node represents an assign operation. Meaning a node is assigned to another node.

Key Concepts

  • isAssignNode : boolean (readonly): This flag can be used for type testing.
  • sourceNode : Node: The source node.
  • targetNode : Node: The target node.

Reference Tables

Constructor

Signature
new AssignNode( targetNode : Node, sourceNode : Node )

Properties

PropertyDescription
.isAssignNode : boolean (readonly)This flag can be used for type testing.
.sourceNode : NodeThe source node.
.targetNode : NodeThe target node.

Methods

MethodDescription
.hasDependencies() : booleanWhether this node is used more than once in context of other nodes. This method is overwritten since it always returns false (assigns are unique).
.needsSplitAssign( builder : NodeBuilder ) : booleanWhether a split is required when assigning source to target. This can happen when the component length of target and source data type does not match.

Key Takeaways

  1. AssignNode extends: EventDispatcher → Node → TempNode
  2. Most relevant properties: isAssignNode, sourceNode, targetNode.
  3. Key methods: hasDependencies, needsSplitAssign.

Connects To