delphi/parser-fileresolver

PHPParser Visitor to add File node as parent node

Installs: 17

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/delphi/parser-fileresolver

dev-main 2022-09-09 16:22 UTC

This package is auto-updated.

Last update: 2025-10-09 23:03:15 UTC


README

Adds a top-level node to represent the file that contains the code.

Sets an attribute on every node with the filepath for reference.

Usage

$fileResolver = new FileResolver();

$t = new \PhpParser\NodeTraverser();
$t->addVisitor($fileResolver);

$fileResolver->setFilepath($filepath);