PHP Class Phan\Analysis\BinaryOperatorFlagVisitor

Inheritance: extends Phan\AST\Visitor\FlagVisitorImplementation
Show file Open project: etsy/phan

Public Methods

Method Description
__construct ( CodeBase $code_base, Context $context ) Create a new BinaryOperatorFlagVisitor
__invoke ( ast\Node $node )
visit ( ast\Node $node ) : UnionType Default visitor for node kinds that do not have an overriding method
visitBinaryAdd ( ast\Node $node ) : UnionType
visitBinaryBoolAnd ( ast\Node $node ) : UnionType
visitBinaryBoolOr ( ast\Node $node ) : UnionType
visitBinaryBoolXor ( ast\Node $node ) : UnionType
visitBinaryConcat ( ast\Node $node ) : UnionType
visitBinaryIsEqual ( ast\Node $node ) : UnionType
visitBinaryIsGreater ( ast\Node $node ) : UnionType
visitBinaryIsGreaterOrEqual ( ast\Node $node ) : UnionType
visitBinaryIsIdentical ( ast\Node $node ) : UnionType
visitBinaryIsNotEqual ( ast\Node $node ) : UnionType
visitBinaryIsNotIdentical ( ast\Node $node ) : UnionType
visitBinaryIsSmaller ( ast\Node $node ) : UnionType
visitBinaryIsSmallerOrEqual ( ast\Node $node ) : UnionType

Private Methods

Method Description
visitBinaryBool ( ast\Node $node ) : UnionType Common visitor for binary boolean operations
visitBinaryOpCommon ( ast\Node $node ) : UnionType

Method Details

__construct() public method

Create a new BinaryOperatorFlagVisitor
public __construct ( CodeBase $code_base, Context $context )
$code_base Phan\CodeBase
$context Phan\Language\Context

__invoke() public method

public __invoke ( ast\Node $node )
$node ast\Node A node to visit

visit() public method

Default visitor for node kinds that do not have an overriding method
public visit ( ast\Node $node ) : UnionType
$node ast\Node A node to check types on
return Phan\Language\UnionType The resulting type(s) of the binary operation

visitBinaryAdd() public method

public visitBinaryAdd ( ast\Node $node ) : UnionType
$node ast\Node A node to check types on
return Phan\Language\UnionType The resulting type(s) of the binary operation

visitBinaryBoolAnd() public method

public visitBinaryBoolAnd ( ast\Node $node ) : UnionType
$node ast\Node A node to check types on
return Phan\Language\UnionType The resulting type(s) of the binary operation

visitBinaryBoolOr() public method

public visitBinaryBoolOr ( ast\Node $node ) : UnionType
$node ast\Node A node to check types on
return Phan\Language\UnionType The resulting type(s) of the binary operation

visitBinaryBoolXor() public method

public visitBinaryBoolXor ( ast\Node $node ) : UnionType
$node ast\Node A node to check types on
return Phan\Language\UnionType The resulting type(s) of the binary operation

visitBinaryConcat() public method

public visitBinaryConcat ( ast\Node $node ) : UnionType
$node ast\Node A node to check types on
return Phan\Language\UnionType The resulting type(s) of the binary operation

visitBinaryIsEqual() public method

public visitBinaryIsEqual ( ast\Node $node ) : UnionType
$node ast\Node A node to check types on
return Phan\Language\UnionType The resulting type(s) of the binary operation

visitBinaryIsGreater() public method

public visitBinaryIsGreater ( ast\Node $node ) : UnionType
$node ast\Node A node to check types on
return Phan\Language\UnionType The resulting type(s) of the binary operation

visitBinaryIsGreaterOrEqual() public method

public visitBinaryIsGreaterOrEqual ( ast\Node $node ) : UnionType
$node ast\Node A node to check types on
return Phan\Language\UnionType The resulting type(s) of the binary operation

visitBinaryIsIdentical() public method

public visitBinaryIsIdentical ( ast\Node $node ) : UnionType
$node ast\Node A node to check types on
return Phan\Language\UnionType The resulting type(s) of the binary operation

visitBinaryIsNotEqual() public method

public visitBinaryIsNotEqual ( ast\Node $node ) : UnionType
$node ast\Node A node to check types on
return Phan\Language\UnionType The resulting type(s) of the binary operation

visitBinaryIsNotIdentical() public method

public visitBinaryIsNotIdentical ( ast\Node $node ) : UnionType
$node ast\Node A node to check types on
return Phan\Language\UnionType The resulting type(s) of the binary operation

visitBinaryIsSmaller() public method

public visitBinaryIsSmaller ( ast\Node $node ) : UnionType
$node ast\Node A node to check types on
return Phan\Language\UnionType The resulting type(s) of the binary operation

visitBinaryIsSmallerOrEqual() public method

public visitBinaryIsSmallerOrEqual ( ast\Node $node ) : UnionType
$node ast\Node A node to check types on
return Phan\Language\UnionType The resulting type(s) of the binary operation