Inheritance: extends PHPParser_Node_Scalar
 /**
  * @dataProvider provideTestParse
  */
 public function testCreate($expected, $string)
 {
     $this->assertEquals($expected, PHPParser_Node_Scalar_String::parse($string));
 }
 protected function yyn328($attributes)
 {
     foreach ($this->yyastk[$this->stackPos - (3 - 2)] as &$s) {
         if (is_string($s)) {
             $s = PHPParser_Node_Scalar_String::parseEscapeSequences($s, null);
         }
     }
     $s = preg_replace('~(\\r\\n|\\n|\\r)$~', '', $s);
     if ('' === $s) {
         array_pop($this->yyastk[$this->stackPos - (3 - 2)]);
     }
     $this->yyval = new PHPParser_Node_Scalar_Encapsed($this->yyastk[$this->stackPos - (3 - 2)], $attributes);
 }
 /**
  * Converts the string into it's original presentation without converting
  * the special character combinations.
  *
  * This method is overridden from the original Zend Pretty Printer because
  * that returns the strings as interpreted by PHP-Parser.
  * Since we do not want such conversions we take the original that is
  * injected by our own custom Lexer.
  *
  * @param \PHPParser_Node_Scalar_String $node The node to return a string
  *     representation of.
  *
  * @see Lexer where the originalValue is injected.
  *
  * @return string
  */
 public function pScalar_String(\PHPParser_Node_Scalar_String $node)
 {
     return $this->pSafe($node->getAttribute('originalValue'));
 }