Merge "parser: Add missing documentation to class properties"
This commit is contained in:
commit
f6af2842f4
7 changed files with 27 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -145,6 +145,7 @@ class ParserOptions {
|
|||
|
||||
/**
|
||||
* Appended to the options hash
|
||||
* @var string
|
||||
*/
|
||||
private $mExtraKey = '';
|
||||
|
||||
|
|
|
|||
|
|
@ -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 = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue