Skip to content

Commit

Permalink
[CssSelector] moved protected to private
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Mar 24, 2011
1 parent 80ff6fb commit da7ddeb
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
12 changes: 6 additions & 6 deletions Parser.php
Expand Up @@ -29,12 +29,12 @@ class Parser
* Optionally, a prefix can be added to the resulting XPath
* expression with the $prefix parameter.
*
* @throws SyntaxError When got None for xpath expression
*
* @param mixed $cssExpr The CSS expression.
* @param string $prefix An optional prefix for the XPath expression.
*
* @return string
*
* @throws SyntaxError When got None for xpath expression
*/
static public function cssToXpath($cssExpr, $prefix = 'descendant-or-self::')
{
Expand Down Expand Up @@ -103,7 +103,7 @@ public function parse($string)
*
* @return Node\NodeInterface
*/
protected function parseSelectorGroup($stream)
private function parseSelectorGroup($stream)
{
$result = array();
while (true) {
Expand Down Expand Up @@ -132,7 +132,7 @@ protected function parseSelectorGroup($stream)
*
* @return Node\NodeInterface
*/
protected function parseSelector($stream)
private function parseSelector($stream)
{
$result = $this->parseSimpleSelector($stream);

Expand Down Expand Up @@ -168,7 +168,7 @@ protected function parseSelector($stream)
*
* @return Node\NodeInterface
*/
protected function parseSimpleSelector($stream)
private function parseSimpleSelector($stream)
{
$peek = $stream->peek();
if ('*' != $peek && !$peek->isType('Symbol')) {
Expand Down Expand Up @@ -277,7 +277,7 @@ protected function parseSimpleSelector($stream)
*
* @return Node\AttribNode
*/
protected function parseAttrib($selector, $stream)
private function parseAttrib($selector, $stream)
{
$attrib = $stream->next();
if ($stream->peek() == '|') {
Expand Down
6 changes: 3 additions & 3 deletions Token.php
Expand Up @@ -21,9 +21,9 @@
*/
class Token
{
protected $type;
protected $value;
protected $position;
private $type;
private $value;
private $position;

/**
* Constructor.
Expand Down
10 changes: 5 additions & 5 deletions TokenStream.php
Expand Up @@ -21,11 +21,11 @@
*/
class TokenStream
{
protected $used;
protected $tokens;
protected $source;
protected $peeked;
protected $peeking;
private $used;
private $tokens;
private $source;
private $peeked;
private $peeking;

/**
* Constructor.
Expand Down
6 changes: 3 additions & 3 deletions Tokenizer.php
Expand Up @@ -114,7 +114,7 @@ public function tokenize($s)
*
* @return array
*/
protected function tokenizeEscapedString($s, $pos)
private function tokenizeEscapedString($s, $pos)
{
$quote = $s[$pos];

Expand Down Expand Up @@ -150,7 +150,7 @@ protected function tokenizeEscapedString($s, $pos)
*
* @return string
*/
protected function unescapeStringLiteral($literal)
private function unescapeStringLiteral($literal)
{
return preg_replace_callback('#(\\\\(?:[A-Fa-f0-9]{1,6}(?:\r\n|\s)?|[^A-Fa-f0-9]))#', function ($matches) use ($literal)
{
Expand All @@ -177,7 +177,7 @@ protected function unescapeStringLiteral($literal)
*
* @return array
*/
protected function tokenizeSymbol($s, $pos)
private function tokenizeSymbol($s, $pos)
{
$start = $pos;

Expand Down
10 changes: 5 additions & 5 deletions XPathExpr.php
Expand Up @@ -21,11 +21,11 @@
*/
class XPathExpr
{
protected $prefix;
protected $path;
protected $element;
protected $condition;
protected $starPrefix;
private $prefix;
private $path;
private $element;
private $condition;
private $starPrefix;

/**
* Constructor.
Expand Down

0 comments on commit da7ddeb

Please sign in to comment.