Twig/InlineCssParser.php
public function parse(Twig_Token $token)
    {
        $lineNo = $token->getLine();
        $stream = $this->parser->getStream();
        if ($stream->test(Twig_Token::STRING_TYPE)) {
            $css = $this->resolvePath($stream->expect(Twig_Token::STRING_TYPE)->getValue());
        } else {
            $css = $this->parser->getExpressionParser()->parseExpression();
        }
        $stream->expect(Twig_Token::BLOCK_END_TYPE);
        $body = $this->parser->subparse(array($this, 'decideEnd'), true);
        $stream->expect(Twig_Token::BLOCK_END_TYPE);

        return new InlineCssNode($body, $css, $lineNo, $this->debug);
    }
public function parse(Twig_Token $token)
    {
        $lineNo = $token->getLine();
        $stream = $this->parser->getStream();
        if ($stream->test(Twig_Token::STRING_TYPE)) {
            $css = $this->resolvePath($stream->expect(Twig_Token::STRING_TYPE)->getValue());
        } else {
            $css = $this->parser->getExpressionParser()->parseExpression();
        }
        $stream->expect(Twig_Token::BLOCK_END_TYPE);
        $body = $this->parser->subparse(array($this, 'decideEnd'), true);
        $stream->expect(Twig_Token::BLOCK_END_TYPE);

        return new InlineCssNode($body, $css, $lineNo, $this->debug);
    }
Parses a token and returns a node.

@param Twig_Token $token A Twig_Token instance

@return Twig_Node A Twig_Node instance