Merge "parser: Add missing documentation to class properties"

This commit is contained in:
jenkins-bot 2024-09-12 23:24:39 +00:00 committed by Gerrit Code Review
commit f6af2842f4
7 changed files with 27 additions and 2 deletions

View file

@ -24,10 +24,15 @@
* @internal
*/
class BlockLevelPass {
/** @var bool */
private $DTopen = false;
/** @var bool */
private $inPre = false;
/** @var string */
private $lastParagraph = '';
/** @var bool */
private $lineStart;
/** @var string */
private $text;
# State constants for the definition list colon extraction

View file

@ -36,7 +36,9 @@ class PPDStack_Hash {
* @var PPDStackElement_Hash|false
*/
public $top;
/** @var string|null */
public $out;
/** @var string */
public $elementClass = PPDStackElement_Hash::class;
public function __construct() {

View file

@ -283,9 +283,15 @@ class Parser {
private LinkHolderArray $mLinkHolders;
private int $mLinkID = 0;
private array $mIncludeSizes;
/** @internal */
/**
* @internal
* @var int
*/
public $mPPNodeCount;
/** @internal */
/**
* @internal
* @var int
*/
public $mHighestExpansionDepth;
private array $mTplRedirCache;
/** @internal */

View file

@ -145,6 +145,7 @@ class ParserOptions {
/**
* Appended to the options hash
* @var string
*/
private $mExtraKey = '';

View file

@ -351,6 +351,7 @@ class ParserOutput extends CacheTime implements ContentMetadataCollector {
/** string CSS classes to use for the wrapping div, stored in the array keys.
* If no class is given, no wrapper is added.
* @var array<string,true>
*/
private $mWrapperDivClasses = [];

View file

@ -10,7 +10,9 @@ use Wikimedia\RemexHtml\Tokenizer\NullTokenHandler;
* @internal
*/
class RemexStripTagHandler extends NullTokenHandler {
/** @var bool */
private $insideNonVisibleTag = false;
/** @var string */
private $text = '';
public function getResult() {

View file

@ -29,17 +29,25 @@ use MediaWiki\Parser\Parser;
* @ingroup Parser
*/
class StripState {
/** @var array[] */
protected $data;
/** @var string */
protected $regex;
protected ?Parser $parser;
/** @var array */
protected $circularRefGuard;
/** @var int */
protected $depth = 0;
/** @var int */
protected $highestDepth = 0;
/** @var int */
protected $expandSize = 0;
/** @var int */
protected $depthLimit = 20;
/** @var int */
protected $sizeLimit = 5_000_000;
/**