tagua-vm / parser

Safe, fast and memory efficient PHP parser (lexical and syntactic analysers, and the Abstract Syntax Tree)
http://tagua.io/
119 stars 15 forks source link

AST: Implement `PartialEq` for `Variable` #103

Closed Hywan closed 7 years ago

Hywan commented 7 years ago

A default implementation of PartialEq was declared for Variable. However, it does not reflect our needs when comparing variable.

Definition: Two variables are said equals if their respective names are equals.

The new PartialEq implementation expresses this definition.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.03%) to 93.502% when pulling 1bb9df59c5a974d6c0e6278b11846a0c04a01f16 on Hywan:variable_partialeq into ff0ca1f618fcce0fc7453d893af0f1dc55f93009 on tagua-vm:master.