Exemple #1
0
 private function parseSelector()
 {
     $oResult = new DeclarationBlock();
     $oResult->setSelector($this->consumeUntil('{', false, true));
     $this->consumeWhiteSpace();
     $this->parseRuleSet($oResult);
     return $oResult;
 }
Exemple #2
0
 private function parseSelector()
 {
     $aComments = array();
     $oResult = new DeclarationBlock($this->iLineNo);
     $oResult->setSelector($this->consumeUntil('{', false, true, $aComments));
     $oResult->setComments($aComments);
     $this->parseRuleSet($oResult);
     return $oResult;
 }