original_string: private function _extractDomain(\Twig_Node $node)
  	{
  		// must be a filter node
  		if (!$node instanceof \Twig_Node_Expression_Filter) {
  			return null;
  		}
  		// is a trans filter
  		if ($node->getNode('filter')->getAttribute('value') == 'trans') {
  			if ($node->getNode('arguments')->hasNode(1)) {
  				return $node->getNode('arguments')
  					->getNode(1)
  					->getAttribute('value');
  			} else {
  				return $this->defaultDomain;
  			}
  		}
  		
  		return $this->_extractDomain($node->getNode('node'));
  	}
code: private function _extractDomain(\Twig_Node $node)
  	{
  		// must be a filter node
  		if (!$node instanceof \Twig_Node_Expression_Filter) {
  			return null;
  		}
  		// is a trans filter
  		if ($node->getNode('filter')->getAttribute('value') == 'trans') {
  			if ($node->getNode('arguments')->hasNode(1)) {
  				return $node->getNode('arguments')
  					->getNode(1)
  					->getAttribute('value');
  			} else {
  				return $this->defaultDomain;
  			}
  		}
  		
  		return $this->_extractDomain($node->getNode('node'));
  	}
code_tokens: private function _extractDomain ( \ Twig_Node $ node ) { // must be a filter node if ( ! $ node instanceof \ Twig_Node_Expression_Filter ) { return null ; } // is a trans filter if ( $ node -> getNode ( 'filter' ) -> getAttribute ( 'value' ) == 'trans' ) { if ( $ node -> getNode ( 'arguments' ) -> hasNode ( 1 ) ) { return $ node -> getNode ( 'arguments' ) -> getNode ( 1 ) -> getAttribute ( 'value' ) ; } else { return $ this -> defaultDomain ; } } return $ this -> _extractDomain ( $ node -> getNode ( 'node' ) ) ; }
docstring: Extract a domain from a \Twig_Node_Print
  Return null if no trans filter
  
  @param \Twig_Node $node
docstring_tokens: Extract a domain from a \ Twig_Node_Print Return null if no trans filter