mirror of
https://github.com/nikic/PHP-Parser.git
synced 2025-01-17 23:28:15 +01:00
Annotate some APIs as @internal
This commit is contained in:
parent
16dff7c2e6
commit
3d40e2217d
@ -25,6 +25,8 @@ class DNumber extends Scalar
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*
|
||||
* Parses a DNUMBER token like PHP would.
|
||||
*
|
||||
* @param string $str A string number
|
||||
|
@ -25,6 +25,8 @@ class LNumber extends Scalar
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*
|
||||
* Parses an LNUMBER token (dec, hex, oct and bin notations) like PHP would.
|
||||
*
|
||||
* @param string $str A string number
|
||||
|
@ -36,6 +36,8 @@ class String extends Scalar
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*
|
||||
* Parses a string token.
|
||||
*
|
||||
* @param string $str String token content
|
||||
@ -60,6 +62,8 @@ class String extends Scalar
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*
|
||||
* Parses escape sequences in strings (all string types apart from single quoted).
|
||||
*
|
||||
* @param string $str String without quotes
|
||||
@ -79,7 +83,7 @@ class String extends Scalar
|
||||
);
|
||||
}
|
||||
|
||||
public static function parseCallback($matches) {
|
||||
private static function parseCallback($matches) {
|
||||
$str = $matches[1];
|
||||
|
||||
if (isset(self::$replacements[$str])) {
|
||||
@ -92,6 +96,8 @@ class String extends Scalar
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*
|
||||
* Parses a constant doc string.
|
||||
*
|
||||
* @param string $startToken Doc string start token content (<<<SMTHG)
|
||||
|
@ -83,6 +83,9 @@ class Class_ extends Node\Stmt
|
||||
return $methods;
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
public static function verifyModifier($a, $b) {
|
||||
if ($a & 7 && $b & 7) {
|
||||
throw new Error('Multiple access type modifiers are not allowed');
|
||||
|
Loading…
x
Reference in New Issue
Block a user