League\CommonMark\ContextInterface::getLineNumber PHP Method

getLineNumber() public method

public getLineNumber ( ) : integer
return integer
    public function getLineNumber();

Usage Example

 public function closeUnmatchedBlocks()
 {
     while ($this->oldTip !== $this->lastMatchedContainer) {
         $oldTip = $this->oldTip->parent();
         $this->oldTip->finalize($this->context, $this->context->getLineNumber() - 1);
         $this->oldTip = $oldTip;
     }
 }
All Usage Examples Of League\CommonMark\ContextInterface::getLineNumber