• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nette / neon / 25702243303

11 May 2026 10:57PM UTC coverage: 97.925% (-0.6%) from 98.485%
25702243303

push

github

dg
used attribute Deprecated

472 of 482 relevant lines covered (97.93%)

0.98 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/src/Neon/Node.php
1
<?php declare(strict_types=1);
1✔
2

3
/**
4
 * This file is part of the Nette Framework (https://nette.org)
5
 * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
6
 */
7

8
namespace Nette\Neon;
9

10

11
/**
12
 * Base class for all AST nodes produced by the NEON parser.
13
 *
14
 * @implements \IteratorAggregate<Node>
15
 */
16
abstract class Node implements \IteratorAggregate
17
{
18
        public ?int $startTokenPos = null;
19
        public ?int $endTokenPos = null;
20
        public ?Position $start = null;
21
        public ?Position $end = null;
22

23

24
        /** Converts the node to its PHP value. */
25
        abstract public function toValue(): mixed;
26

27

28
        /** Converts the node back to its NEON representation. */
29
        abstract public function toString(): string;
30

31

32
        public function &getIterator(): \Generator
1✔
33
        {
34
                return;
1✔
35
                yield;
×
36
        }
37
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc