History log of /PHP-Parser/lib/PhpParser/NodeVisitor/NameResolver.php (Results 26 – 50 of 57)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 3da18976 28-Apr-2017 Nikita Popov

Distinguish between implicit/explicit alias

The UseUse::$alias node can now be null if an alias is not
explicitly given. As such "use Foo\Bar" and "use Foo\Bar as Bar"
are now repres

Distinguish between implicit/explicit alias

The UseUse::$alias node can now be null if an alias is not
explicitly given. As such "use Foo\Bar" and "use Foo\Bar as Bar"
are now represented differently.

The UseUse->getAlias() method replicates the previous semantics,
by returning "Bar" in both cases.

show more ...


# a6846e3b 28-Apr-2017 Nikita Popov

Always use Identifier nodes

The parser will now always generate Identifier nodes (for
non-namespaced identifiers). This obsoletes the useIdentifierNodes
parser option.

Node

Always use Identifier nodes

The parser will now always generate Identifier nodes (for
non-namespaced identifiers). This obsoletes the useIdentifierNodes
parser option.

Node constructors still accepts strings and will implicitly create
an Identifier wrapper. Identifier implement __toString(), so that
outside of strict-mode many things continue to work without changes.

show more ...


# 7f6477ed 28-Apr-2017 Nikita Popov

Combine class/non-class name resolution into single method


# 6168abd9 27-Apr-2017 Nikita Popov

Extract name resolution logic into NameContext

All the generic name resolution logic is now available as a separate
class with a public API.


# fba61390 24-Apr-2017 Nikita Popov

Use null-coalesce operator


Revision tags: v3.0.5
# 86ea6fe8 26-Feb-2017 Nikita Popov

Remove leftover code


# 1b59e918 26-Feb-2017 Nikita Popov

Perform NullableType resolution earlier

This makes sure function signatures are already fully resolved in
enterNode(). Resolves issue #360.


Revision tags: v3.0.4, v3.0.3
# 329e90c2 02-Feb-2017 Matthew Brown

Improve doc comments


# bfea338d 25-Jan-2017 Nikita Popov

Update doc comments after previous comment

Make some of the type annotations more accurate, and complete the
generated doc-comments to be complete (with description and
parameter ann

Update doc comments after previous comment

Make some of the type annotations more accurate, and complete the
generated doc-comments to be complete (with description and
parameter annotations.)

show more ...


# e3b87f40 24-Jan-2017 Matthew Brown

Add non-void return types


# 7b441d21 10-Dec-2016 Matthew Brown

Fix issues reported by psalm


# f21309f5 26-Dec-2016 Nikita Popov

Add NameResolver mode that does not modify nodes


# 3e8c8d24 17-Dec-2016 Felix Becker

Add originalName attribute in NameResolver

For now gated behind a preserveOriginalNames option.


Revision tags: v3.0.2
# a485ecd7 05-Dec-2016 Ondrej Mirtes

NameResolver - resolve Name in NullableType


Revision tags: v3.0.1, v3.0.0
# bcdfb703 23-Nov-2016 Nikita Popov

Cleanup imports

Thanks PhpStorm :)


Revision tags: v3.0.0beta2
# fa7357b4 22-Oct-2016 Nikita Popov

Represent empty Name::slice() using null

Instead of a Name([]) dummy value, that is invalid in other
contexts.


# 91cb82d3 22-Oct-2016 Nikita Popov

Explicitly support Name copy construction

It already worked beforehand by accident ... make clear it's
actually supported.


# f99a96e0 09-Oct-2016 Nikita Popov

Introduce ErrorHandler

Add ErrorHandler interface, as well as ErrorHandler\Throwing
and ErrorHandler\Collecting. The error handler is passed to
Parser::parse(). This supersedes the t

Introduce ErrorHandler

Add ErrorHandler interface, as well as ErrorHandler\Throwing
and ErrorHandler\Collecting. The error handler is passed to
Parser::parse(). This supersedes the throwOnError option.

NameResolver now accepts an ErrorHandler in the ctor.

show more ...


# 90834bff 11-Oct-2016 Nikita Popov

Add namespacedName attribute on runtime-resolved names

The NameResolver now adds a namespacedName attribute on function/
const names which cannot be statically resolved.


Revision tags: v3.0.0beta1, v2.1.1, v3.0.0alpha1
# 537b59d4 22-Jul-2016 Nikita Popov

PHP 7.1: Support multi-catch

Catch::$type is now an array Catch::$types.


Revision tags: v2.1.0, v2.0.1, v2.0.0, v2.0.0beta1, v1.4.1, v2.0.0alpha1, v1.4.0
# 0265c28e 12-Jul-2015 Nikita Popov

Switch NameResolver resolve methods to be immutable

To make it theoretically possible to expose this as API.

Add slice() method to Name to allow this. Deprecate existing mutable

Switch NameResolver resolve methods to be immutable

To make it theoretically possible to expose this as API.

Add slice() method to Name to allow this. Deprecate existing mutable
Name APIs.

show more ...


# 1a1bd144 13-Jun-2015 Nikita Popov

Support mixed group use declarations


# 9620f79c 12-Jun-2015 Nikita Popov

Add partial group use support

Supported via Stmt\GroupUse which has Name $prefix in addition to
the usual.

Still missing: Mixed group uses.


Revision tags: v1.3.0
# e1a0ec37 26-Apr-2015 Nikita Popov

Add support for anonymous classes

Has not landed upstream yet, but syntax is unlikely to change.


Revision tags: v1.2.2
# 52dafafd 25-Mar-2015 Nikita Popov

Resolve param type hints earlier

For convenience of concurrent visitors that want to perform
enterNode actions based on Stmt\Function_ etc.

Fixes #188.


123