Commit Graph

191 Commits

Author SHA1 Message Date
Andrey Breslav 163e5cfbb4 Properly process this in callee position 2013-12-05 13:02:15 +04:00
Andrey Breslav b15b075484 Tests for bug in CFA: no return in when() is now detected 2013-12-05 13:02:15 +04:00
Andrey Breslav ec39105183 Type parameter is not an expression: no need to report 'unused expression' on it 2013-12-05 13:02:14 +04:00
Andrey Breslav b5ae3adf77 Proper resolved calls for '==' 2013-12-05 13:02:14 +04:00
Andrey Breslav 87b6ec4990 Proper read instructions for function literals 2013-12-05 13:02:14 +04:00
Andrey Breslav 09a1736ab6 Recovery in qualified expressions 2013-12-05 13:02:06 +04:00
Andrey Breslav 1e2eb6dfa1 Special instructions added for calls and other constructs 2013-12-05 13:00:44 +04:00
Evgeny Gerashchenko eb5455e89f Got rid of "jet" file extension. 2013-10-01 19:32:38 +04:00
Natalia.Ukhorskaya 171144e641 Change ControlFlow for delegated property 2013-04-30 20:07:54 +04:00
Svetlana Isakova 6e8ac23689 removed allow dead collecting 2012-12-18 16:00:27 +04:00
Svetlana Isakova d778952512 fixed bug with incorrect copy of pseudocode part
(was noticeable in doTestCopy4 example)
labels after part should be repeated as well
2012-12-18 16:00:27 +04:00
Svetlana Isakova e15340bf3c use upper-case L in label name instead of lower-case 2012-12-18 16:00:27 +04:00
Svetlana Isakova 97058e628e added names for loop labels
updated control flow test data
2012-12-18 16:00:26 +04:00
Svetlana Isakova e72cdbc1f7 added tests for 'copy' finally pseudocode part 2012-12-18 16:00:26 +04:00
Svetlana Isakova f0dea9aee4 updated test data for try-finally 2012-12-18 16:00:26 +04:00
Svetlana Isakova 8860bab9f1 KT-2643 Support multi-declarations in Data-Flow analysis
#KT-2643 fixed
2012-08-20 18:48:09 +04:00
Svetlana Isakova 2971c1630e KT-2166 Control flow analysis doesn't detect that a 'while(true)' loop never terminates
KT-2103 Compiler requires return statement after loop which never exits
 #KT-2166 Fixed
 #KT-2103 Fixed
2012-06-09 13:33:25 +04:00
Svetlana Isakova 9ede882cd5 KT-2226 Parameter used as delegation by object marked as unused
#KT-2226 fixed
2012-06-09 13:33:25 +04:00
Svetlana Isakova d1d0722b5a tests for dead code in pseudocode 2012-05-28 12:09:45 +04:00
Svetlana Isakova 7a02cfcd25 order of declaration changed in tests 2012-05-28 12:09:45 +04:00
Svetlana Isakova edb529f68f added edge 'error' -> 'sink'
added 'getLocalDeclarations' method to pseudocode
2012-05-28 12:06:12 +04:00
Nikolay Krasko dcc6392eb4 Intermediate major refactorings for lazy resolve - test fix (order changed) 2012-05-11 19:27:56 +04:00
Svetlana Isakova cc244fad94 KT-1191 Wrong detection of unused parameters
KT-1219 Incorrect 'unused value' error in closures
2012-02-24 12:09:02 +04:00
Alex Tkachman 53bba59a4f dbl -> toDouble 2012-02-22 13:14:41 +02:00
Andrey Breslav bff62484b1 KT-1306123.lng or 123.sht is not good name 2012-02-20 21:42:13 +04:00
svtk e6a2b2fc0f //KT-1027 Strange selection of unreachable code 2012-01-17 15:43:11 +04:00
svtk 3a634417b9 KT-776 Wrong detection of unreachable code
KT-1001 Argument 2 for @NotNull parameter of JetFlowInformationProvider.checkIsInitialized must not be null
2012-01-17 15:27:54 +04:00
Andrey Breslav 6bad4830c3 Graet Syntactic Shift : Syntax for function literals fixed 2011-12-21 10:52:58 +02:00
svtk ba49f508c9 KT-609 Analyze not only local variables, but function parameters as well in 'unused values' analysis 2011-11-29 19:04:15 +04:00
svtk 4bf3a61621 KT-575 Cannot ++ a class object member 2011-11-22 18:05:50 +04:00
svtk 2d6337fe93 KT-456 No check for obligatory return in getters 2011-11-09 12:22:08 +04:00
svtk dfb17a5f0e KT-58 Allow finally around definite returns 2011-11-08 16:25:04 +04:00
svtk 7d7d33b2ee KT-443 Write allowed to super.val 2011-11-07 19:49:32 +04:00
svtk c71d9796a2 improved processing of local declarations in cfg construction 2011-11-07 18:49:30 +04:00
svtk 92a3fef06b Added 'sink' instruction to pseudocode 2011-11-03 18:29:34 +04:00
svtk eab7fdf4bc Added information about anonymous initializers to cfg & proper checks 2011-11-01 18:54:33 +04:00
svtk 1de766ff0d KT-402 JetFunctionLiteral visited instead of JetFunctionLiteralExpression 2011-10-26 14:20:07 +04:00
svtk 38464d4e57 Added mark '*' for dead instructions while visualizing cfg 2011-10-24 18:40:23 +04:00
svtk b230b3494d Added tests for control flow graph construction 2011-10-24 13:03:02 +04:00
svtk b31f4b5251 Merge branch 'master' of ssh://git.labs.intellij.net/jet
Conflicts:
	compiler/tests/org/jetbrains/jet/cfg/JetControlFlowTest.java
2011-10-21 17:13:09 +04:00
Dmitry Jemerov ec6dec0d37 separate compiler and plugin tests 2011-10-20 16:21:18 +02:00