// Token: 0x06001BCC RID: 7116 RVA: 0x000D5774 File Offset: 0x000D3974
        private int GetEntry(int precedence)
        {
            int num = this.currentEntry;

            if (num != -1)
            {
                if (this.entries[num].Precedence != precedence)
                {
                    num = this.topEntry - 1;
                    while (num >= 0 && this.entries[num].Precedence >= precedence)
                    {
                        num--;
                    }
                    num++;
                    if (num == this.topEntry || this.entries[num].Precedence != precedence)
                    {
                        this.InitializeEntry(this.topEntry, precedence);
                        if (num < this.topEntry)
                        {
                            StyleBuildHelper.PrecedenceEntry precedenceEntry = this.entries[this.topEntry];
                            for (int i = this.topEntry - 1; i >= num; i--)
                            {
                                this.entries[i + 1] = this.entries[i];
                            }
                            this.entries[num] = precedenceEntry;
                        }
                        this.topEntry++;
                    }
                }
            }
            else
            {
                num = this.topEntry++;
                this.InitializeEntry(num, precedence);
            }
            this.currentEntry = num;
            return(num);
        }
 // Token: 0x06001BCB RID: 7115 RVA: 0x000D56E0 File Offset: 0x000D38E0
 private void InitializeEntry(int entry, int precedence)
 {
     if (this.entries == null)
     {
         this.entries = new StyleBuildHelper.PrecedenceEntry[4];
     }
     else if (entry == this.entries.Length)
     {
         if (entry == 16)
         {
             throw new TextConvertersException(TextConvertersStrings.InputDocumentTooComplex);
         }
         StyleBuildHelper.PrecedenceEntry[] destinationArray = new StyleBuildHelper.PrecedenceEntry[this.entries.Length * 2];
         Array.Copy(this.entries, 0, destinationArray, 0, this.entries.Length);
         this.entries = destinationArray;
     }
     if (this.entries[entry] == null)
     {
         this.entries[entry] = new StyleBuildHelper.PrecedenceEntry(precedence);
         return;
     }
     this.entries[entry].ReInitialize(precedence);
 }