original_string: protected function link_sections_and_slots() {
          foreach ($this->sections as $i => $section) {
              if (isset($this->sections[$i + 1])) {
                  $section->lastslot = $this->sections[$i + 1]->firstslot - 1;
              } else {
                  $section->lastslot = count($this->slots);
              }
              for ($slot = $section->firstslot; $slot <= $section->lastslot; $slot += 1) {
                  $this->slots[$slot]->section = $section;
              }
          }
      }
code: protected function link_sections_and_slots() {
          foreach ($this->sections as $i => $section) {
              if (isset($this->sections[$i + 1])) {
                  $section->lastslot = $this->sections[$i + 1]->firstslot - 1;
              } else {
                  $section->lastslot = count($this->slots);
              }
              for ($slot = $section->firstslot; $slot <= $section->lastslot; $slot += 1) {
                  $this->slots[$slot]->section = $section;
              }
          }
      }
code_tokens: protected function link_sections_and_slots ( ) { foreach ( $ this -> sections as $ i => $ section ) { if ( isset ( $ this -> sections [ $ i + 1 ] ) ) { $ section -> lastslot = $ this -> sections [ $ i + 1 ] -> firstslot - 1 ; } else { $ section -> lastslot = count ( $ this -> slots ) ; } for ( $ slot = $ section -> firstslot ; $ slot <= $ section -> lastslot ; $ slot += 1 ) { $ this -> slots [ $ slot ] -> section = $ section ; } } }
docstring: Let each slot know which section it is part of.
docstring_tokens: Let each slot know which section it is part of .