-
Notifications
You must be signed in to change notification settings - Fork 2
PartitionByFunction

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.
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.
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).

- AppendToCollection
- ClearCollection
- ForEach
- GetCollectionSize
- GetElement
- GetFirstElement
- GetLastElement
- EnumerateDocumentsInProject
- EnumerateDocumentsInSolution
- EnumerateProjects
- GetCurrentDocument
- GetCurrentProject
- GetDocumentName
- GetDocumentPartition
- GetProjectName
- FindFirstPartitionInCollection
- GetLeadingSpacing
- GetNextPartition
- GetPartitionData
- GetPreviousPartition
- GetPureName
- InsertAfter
- InsertBefore
- PartitionByClass
- PartitionByFirstRegexMatch
- PartitionByFunctionCall
- PartitionByFunction
- PartitionByIfElse
- PartitionByParameters
- PartitionByRegexMatch
- PartitionByReturn
- PartitionByVariable
- PartitionIsValid
- RasterizePartition
- RegexMatchPresentInPartitionCollection
- RegexMatchPresentInPartition
- RemovePartition
- SetPartitionData
- SwapPartitions