Review Request 117515: Deduce the type of common binary expressions

Denis Steckelmacher steckdenis at yahoo.fr
Sat Apr 12 17:37:32 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/117515/
-----------------------------------------------------------

(Updated April 12, 2014, 5:37 p.m.)


Status
------

This change has been marked as submitted.


Review request for KDevelop.


Repository: kdev-qmljs


Description
-------

Several binary expressions have always the same type, independently of the type of the operands. Such operations either always return a boolean (==, <, >, >=, in, &&, ||, etc) or always an integer (<<, >>, &, | and ^). This patch recognizes these expressions in ExpressionVisitor.


Diffs
-----

  duchain/expressionvisitor.h 5c065ad 
  duchain/expressionvisitor.cpp 17bd266 
  tests/files/helloworld.js 3696b2c 

Diff: https://git.reviewboard.kde.org/r/117515/diff/


Testing
-------

This patch adds a test ensuring that "a == b" is recognized as having a boolean type. 


Thanks,

Denis Steckelmacher

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20140412/8aaf79ba/attachment-0001.html>


More information about the KDevelop-devel mailing list