Review Request 117515: Deduce the type of common binary expressions

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

This is an automatically generated e-mail. To reply, visit:

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


This change has been marked as submitted.

Review request for KDevelop.

Repository: kdev-qmljs


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.


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



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


Denis Steckelmacher

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the KDevelop-devel mailing list