Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ MergeBuckets()

static void System.Linq.Expressions.Compiler.LambdaCompiler.MergeBuckets ( List< List< SwitchLabel > > buckets)
inlinestaticprivate

Definition at line 3025 of file LambdaCompiler.cs.

3026 {
3027 while (buckets.Count > 1)
3028 {
3029 List<SwitchLabel> list = buckets[buckets.Count - 2];
3030 List<SwitchLabel> list2 = buckets[buckets.Count - 1];
3031 if (!FitsInBucket(list, list2[list2.Count - 1].Key, list2.Count))
3032 {
3033 break;
3034 }
3036 buckets.RemoveAt(buckets.Count - 1);
3037 }
3038 }
void AddRange(IEnumerable< KeyValuePair< TKey, TValue > > collection)
static bool FitsInBucket(List< SwitchLabel > buckets, decimal key, int count)

References System.Collections.Generic.Dictionary< TKey, TValue >.AddRange(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Linq.Expressions.Compiler.LambdaCompiler.FitsInBucket(), and System.list.

Referenced by System.Linq.Expressions.Compiler.LambdaCompiler.AddToBuckets().