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

Partitions input Partition by all classes. Furthermore class partitions will be partitioned by scope, modifier, category, name, and body.
Note: This will also extract nested classes, e.g.
public class Class1
{
public class Class2
{
}
}
will produce 2 partitions:
public class Class1
{
public class Class2
{
}
}
and
public class Class2
{
}
Start - execution entry.
Partition (type: Partition) - input partition.
ScopeFilter (public/private/protected/internal) - only classes with scope matching this filter will be returned.
ClassModifierFilter (static/abstract/sealed) - only classes with modifier matching this filter will be returned.
TypeCategoryFilter (class/interface/struct/enum) - only classes (or other types) matching this category will be returned.
ClassNameFilter (type: regex string) - only classes with names matching this filter will be returned. If left empty, all classes will be returned.
Done - execution exit.
Loop - executes for each class.
Class (type: Partition) - partitioned class block.
Scope (type: Partition) - class scope (public/private/protected/internal/null if empty).
ClassModifier (type: Partition) - class modifier (static/abstract/sealed/null if empty).
TypeCategory (type: Partition) - type category (class/interface/struct/enum).
ClassName (type: Partition) - name of the class (does not include generic arguments).
ClassBody (type: Partition) - body of the class (everything inside {} brackets).

- 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