ElementBuilderGroupExtensions Class

Summary

Various extension methods for Weaver.Editor.Procedural.Scripting.IElementBuilderGroup.
Assembly
Weaver.dll
Namespace
Weaver.Editor.Procedural.Scripting
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["ElementBuilderGroupExtensions"] class Type type-node

Syntax

public static class ElementBuilderGroupExtensions

Methods

Name Value Summary
AppendElements(IElementBuilderGroup, StringBuilder, int) void
Calls Weaver.Editor.Procedural.Scripting.ElementBuilder.AppendScript(System.Text.StringBuilder,System.Int32) on all Weaver.Editor.Procedural.Scripting.IElementBuilderGroup.Elements.
static
MatchElementCompilationSymbol(IElementBuilderGroup) void
If all members have the same Weaver.Editor.Procedural.Scripting.ElementBuilder.CompilationSymbolIndex, this type will be given the same value and this method returns true. This method is called on its nested groups as well.
static
MatchElementRegion(IElementBuilderGroup) void
If all members have the same Weaver.Editor.Procedural.Scripting.ElementBuilder.RegionIndex, this type will be given the same value and this method returns true. This method is called on its nested groups as well.
static
PrepareMembersToBuild(IElementBuilderGroup, bool, bool) void
Calls Weaver.Editor.Procedural.Scripting.ElementBuilder.PrepareToBuild(System.Boolean,System.Boolean@) on all Weaver.Editor.Procedural.Scripting.IElementBuilderGroup.Elements.
static
ReleaseElementsToPool(List<ElementBuilder>) void
Calls Weaver.Editor.Procedural.Scripting.ElementBuilder.ReleaseToPool on each item in the list, then clears it.
static
ReleaseToPoolIfEmpty<T>(T) void
If the specified `type` has no members, remove it from its declaring type, call Weaver.Editor.Procedural.Scripting.ElementBuilder.ReleaseToPool, and set the reference to null.
static
ResolveMemberNamingConflicts(IElementBuilderGroup) void
Calls Weaver.Editor.Procedural.Scripting.ElementBuilder.ResolveNamingConflicts(System.Collections.Generic.Dictionary{System.String,Weaver.Editor.Procedural.Scripting.ElementBuilder}) on all Weaver.Editor.Procedural.Scripting.IElementBuilderGroup.Elements.
static
SortElements(IElementBuilderGroup, Comparison<ElementBuilder>) void
Sorts the Weaver.Editor.Procedural.Scripting.IElementBuilderGroup.Elements list using the specified `comparison` and maintaining the order of any elements with an identical comparison (unlike the standard System.Collections.Generic.List`1.Sort(System.Comparison{`0}) method).

This method is also called recursively for any nested groups.
static