Skip to content

PartitionByFunction

cpgames edited this page Aug 28, 2022 · 3 revisions

image

Partitions input Partition by all functions. Furthermore functions will be partitioned by scope, modifier, return type, function name, parameters, and function body.

Note: This will also extract nested functions.


Input Ports:

Start - execution entry.
Partition (type: Partition) - input partition.
FunctionKindFilter (constructor/regular) - only functions matching this function kind filter (regular or constructor or both) will be returned.
ScopeFilter (public/private/protected/internal) - only functions with scope matching this filter will be returned.
ModifierFilter (static/abstract/virtual) - only functions with modifier matching this filter will be returned.
ReturnTypeFilter (type: regex string) - only functions with return types matching this filter will be returned. If left empty, all functions will be returned.
FunctionNameFilter (type: regex string) - only functions with names matching this filter will be returned. If left empty, all functions will be returned.
ParameterNameFilter (type: regex string) - only functions with parameter block matching this filter will be returned. If left empty, all functions will be returned.


Output Ports:

Done - execution exit.
Loop - executes for each function.
Function (type: Partition) - partitioned function block.
Scope (type: Partition) - function scope (public/private/protected/internal/null if empty).
Modifier (type: Partition) - function modifier (static/abstract/virtual/null if empty).
ReturnType (type: Partition) - function return type (empty if constructor).
FunctionName (type: Partition) - name of the function.
Parameters (type: Partition) - parameter block. Note: you will still need to partition parameter block with PartitionByParameters node to access individual parameters.
FunctionBody (type: Partition) - function body (empty if abstract).


Example:

image

Clone this wiki locally