8000 Release v0.3.0 · z7zmey/php-parser · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

v0.3.0

Compare
Choose a tag to compare
@z7zmey z7zmey released this 01 Mar 21:06
· 479 commits to master since this release

Namespace resolver

Namespace resolver is a visitor that traverses nodes and resolves name nodes as fully qualified names.
It does not change AST but collects resolved names into map[node.Node]string

For Class, Interface, Trait, Function, ConstList nodes collects name with current namespace.
For Name, Relative, 'FullyQualified' nodes resolves use aliases and collects a fully qualified name.

Other changes

  • Remove the underscore from package names
  • Fix goreportcard.com warnings
  • Rename Walker to Walkable interface
  • Add Names interface
  • Add dumper and namespace_resolver tests
0