namespace Sabberworm\CSS\CSSList;
+use Sabberworm\CSS\Parsing\ParserState;
+
/**
* The root CSSList of a parsed file. Contains all top-level css contents, mostly declaration blocks, but also any @-rules encountered.
*/
parent::__construct($iLineNo);
}
+ public static function parse(ParserState $oParserState) {
+ $oDocument = new Document($oParserState->currentLine());
+ CSSList::parseList($oParserState, $oDocument);
+ return $oDocument;
+ }
+
/**
* Gets all DeclarationBlock objects recursively.
*/