Home
last modified time | relevance | path

Searched refs:Float_ (Results 1 – 17 of 17) sorted by relevance

/PHP-Parser/lib/PhpParser/Node/Scalar/
H A DFloat_.php7 class Float_ extends Scalar { class
29 public static function fromString(string $str, array $attributes = []): Float_ {
33 return new Float_($float, $attributes);
78 class_alias(Float_::class, DNumber::class);
/PHP-Parser/test/PhpParser/Node/Scalar/
H A DDNumberTest.php19 $this->assertInstanceOf(Float_::class, $lLumber);
21 /** @var Float_ $dnumber */
/PHP-Parser/test/PhpParser/Builder/
H A DInterfaceTest.php12 use PhpParser\Node\Scalar\Float_; alias
53 new Node\Const_('SPEED_OF_LIGHT', new Float_(299792458.0))
61 new Node\Const_('SPEED_OF_LIGHT', new Float_(299792458))
108 new Node\Const_('SPEED_OF_LIGHT', new Float_(299792458))
H A DClassConstTest.php188 new Scalar\Float_(3.1415)
H A DPropertyTest.php198 new Scalar\Float_(3.1415)
H A DParamTest.php53 new Scalar\Float_(3.1415)
/PHP-Parser/test/PhpParser/
H A DCompatibilityTest.php24 $node = new Scalar\Float_(1.0);
53 $this->assertTrue($node instanceof Scalar\Float_);
H A DPrettyPrinterTest.php7 use PhpParser\Node\Scalar\Float_; alias
162 [new Float_(\INF), '1.0E+1000'],
163 [new Float_(-\INF), '-1.0E+1000'],
164 [new Float_(-\NAN), '\NAN'],
H A DBuilderHelpersTest.php186 $this->assertEquals(new Scalar\Float_(2.5), BuilderHelpers::normalizeValue(2.5));
H A DNodeTraverserTest.php445 ['leaveNode', $num, [new Node\Scalar\Float_(42.0)]],
/PHP-Parser/lib/PhpParser/
H A DBuilderHelpers.php244 return new Scalar\Float_($value);
H A DConstExprEvaluator.php108 || $expr instanceof Scalar\Float_
/PHP-Parser/
H A DUPGRADE-5.0.md281 * `Node\Scalar\DNumber` is now `Node\Scalar\Float_`.
/PHP-Parser/grammar/
H A Dphp.y1245 …| T_DNUMBER { $$ = Scalar\Float_::fromString($1, attri…
/PHP-Parser/lib/PhpParser/PrettyPrinter/
H A DStandard.php229 protected function pScalar_Float(Scalar\Float_ $node): string {
/PHP-Parser/lib/PhpParser/Parser/
H A DPhp7.php2587 …$self->semValue = Scalar\Float_::fromString($self->semStack[$stackPos-(1-1)], $self->getAttributes…
H A DPhp8.php2589 …$self->semValue = Scalar\Float_::fromString($self->semStack[$stackPos-(1-1)], $self->getAttributes…

Completed in 64 milliseconds