Alexander Udalov
4df7cb4e72
Major refactoring of deserialization contexts: merge two into one
2014-11-25 23:15:47 +03:00
Alexander Udalov
cb5c21e831
Merge DeserializationGlobalContext with DeserializationComponents
2014-11-25 23:15:47 +03:00
Alexander Udalov
aa1fa7063e
Minor, drop one of "withTypes" in favor of default arguments
2014-11-25 23:15:47 +03:00
Alexander Udalov
1a84ade232
Minor, rename field deserializer -> memberDeserializer
2014-11-25 23:15:46 +03:00
Alexander Udalov
cfa484f760
Introduce DeserializationComponents
...
Decouple components from the state present in contexts, get rid of duplication
of parameters in each context
2014-11-25 23:15:46 +03:00
Alexander Udalov
fc0f83cbdb
Minor, change parameter order, reformat
2014-11-25 23:15:46 +03:00
Alexander Udalov
eadf9a13b9
Untangle circular dependency of TypeDeserializer and context
2014-11-25 23:15:46 +03:00
Alexander Udalov
ea3778d5be
Use outer class context in ClassDeserializer
2014-11-25 23:15:45 +03:00
Andrey Breslav
8f26bc646e
Fix containing declarations for deserialized type parameters of top-level functions
2014-11-25 23:15:45 +03:00
Zalim Bashorov
04f6d50423
Minor in JS stdlib: annotate volatile and synchronized as native.
...
Don't generate code for this classes to avoid warnings from some minifiers.
Note: volatile and synchronized was reserved word in ECMAScript 2, but is not since ECMAScript 5.
2014-11-25 21:11:17 +03:00
Andrey Breslav
2a334fc8f5
Support JS-targeted diagnostic tests
2014-11-25 18:45:43 +03:00
Nikolay Krasko
722624f0a4
Add test about platform static checks in ide
2014-11-25 17:16:15 +03:00
Nikolay Krasko
700187cce6
Add ability to configure checker tests with directives
2014-11-25 17:16:14 +03:00
Natalia Ukhorskaya
528c674001
Gradle plugin: add file to sourceList instead of Function1 fix
2014-11-25 16:26:14 +03:00
Natalia Ukhorskaya
687fb247d3
Gradle plugin: add file to sourceList instead of Function1
2014-11-25 16:17:53 +03:00
Valentin Kipyatkov
dbe7c84af3
Partial body resolve: tests now support resolve to any element with selection in test data
2014-11-24 20:11:30 +03:00
Valentin Kipyatkov
389b2cca8a
Internal action to search calls with type Nothing which is not explicitly declared
2014-11-24 20:11:29 +03:00
Valentin Kipyatkov
95042a729f
Fixed NPE
2014-11-24 20:11:29 +03:00
Valentin Kipyatkov
f29e2788cb
Improvements in internal action
2014-11-24 20:11:29 +03:00
Valentin Kipyatkov
48f696947f
Switched to ResolutionFacade
2014-11-24 20:11:29 +03:00
Valentin Kipyatkov
32a13502c5
Fixed one of the cases with lambda's returning Nothing
2014-11-24 20:11:29 +03:00
Valentin Kipyatkov
c5afc219b9
Added assert + removed qualified names
2014-11-24 20:11:29 +03:00
Valentin Kipyatkov
bd8eaeedaa
Added tests for lambda's returning Nothing (currently do not work)
2014-11-24 20:11:29 +03:00
Valentin Kipyatkov
d7d533cf39
Added internal action to check partial body resolve correctness
2014-11-24 20:11:29 +03:00
Valentin Kipyatkov
6cb6a907d7
Changed test output from line comments to block comments
2014-11-24 20:11:29 +03:00
Valentin Kipyatkov
2f226685d5
Compiler bug workaround
2014-11-24 20:11:28 +03:00
Valentin Kipyatkov
0f59622a44
Checked that partial body resolve works for property delegating
2014-11-24 20:11:28 +03:00
Valentin Kipyatkov
390f5b1bc4
Added comment
2014-11-24 20:11:28 +03:00
Valentin Kipyatkov
1f7f046552
Code refactoring
2014-11-24 20:11:28 +03:00
Valentin Kipyatkov
14d1b9ce35
Renamed StatementTree + moved utility functions into class object
2014-11-24 20:11:28 +03:00
Valentin Kipyatkov
ea3da6cbe6
Renamed enum members
2014-11-24 20:11:28 +03:00
Valentin Kipyatkov
d334011d5d
Renamed firstOrNullIsInstance
2014-11-24 20:11:28 +03:00
Valentin Kipyatkov
ddc60ac5dd
Better injecting of partial body resolve filter
2014-11-24 20:11:28 +03:00
Valentin Kipyatkov
0b56760910
Partial body resolve works for property accessor body
2014-11-24 20:11:27 +03:00
Valentin Kipyatkov
8ccf56415a
Partial body resolve filter: fixed nested loops case
2014-11-24 20:11:27 +03:00
Valentin Kipyatkov
cc84e9682b
Partial body resolve: corrected it for explicit function type but unfortunately it does not work for non-explicit type yet
2014-11-24 20:11:27 +03:00
Valentin Kipyatkov
058af69078
Partial body resolve: added more tests
2014-11-24 20:11:27 +03:00
Valentin Kipyatkov
0dd77a8ed3
Renames - dropped word "Service"
2014-11-24 20:11:27 +03:00
Valentin Kipyatkov
2f19713cc2
Partial body resolve: rewritten algorithm of filter building to ensure correct resolve of smart cast points (+ prepared to support more strict mode for resolve only)
2014-11-24 20:11:27 +03:00
Valentin Kipyatkov
f8f07dc824
Minor
2014-11-24 20:11:27 +03:00
Valentin Kipyatkov
cd90ab951f
Partial body resolve tests: more informative test output
2014-11-24 20:11:27 +03:00
Valentin Kipyatkov
4503adb7fc
Partial body resolve filter: more correct lambda resolve for return
2014-11-24 20:11:26 +03:00
Valentin Kipyatkov
59cc441fc5
Partial body resolve filter: changed algorithm so that all statements to resolve are found when constructing it
2014-11-24 20:11:26 +03:00
Valentin Kipyatkov
4ca8a3400e
Added a test
2014-11-24 20:11:26 +03:00
Valentin Kipyatkov
166d580682
Partial body resolve: found group of cases incorrectly handled by the current implementation
2014-11-24 20:11:26 +03:00
Valentin Kipyatkov
00d9c94a8b
Changed way to pass statementFilter from ElementResolver into ExpressionTypingServices
2014-11-24 20:11:26 +03:00
Valentin Kipyatkov
a0c9c0e7b2
Added firstOrNullIsInstance and firstIsInstance methods
2014-11-24 20:11:26 +03:00
Valentin Kipyatkov
46c393d2db
Added === and !== in addition to == and !=
2014-11-24 20:11:26 +03:00
Valentin Kipyatkov
a4513c6a00
Added comments
2014-11-24 20:11:26 +03:00
Valentin Kipyatkov
6230ba7310
"casted" -> "cast"
2014-11-24 20:11:25 +03:00