Andrey Breslav
b0e62315fd
Merge pull request #394 from ilya-klyuchnikov/spelling
...
typo fixed: invokation -> invocation
2014-02-28 14:13:15 +03:00
Ilya Klyuchnikov
0be6e57efe
typo fixed: invokation -> invocation
2014-02-28 14:25:10 +04:00
Alexey Sedunov
6755abefb7
Reuse getQualifiedElement() function
2014-02-27 17:00:43 +04:00
Alexey Sedunov
b9be11263f
Remove unused method
2014-02-27 17:00:41 +04:00
Alexey Sedunov
0520306b94
Add tests for Java "Move File" refactoring
2014-02-27 17:00:39 +04:00
Alexey Sedunov
33cbc099ab
Add tests for Java "Move Inner Class/To Inner Class" refactoring
2014-02-27 17:00:37 +04:00
Alexey Sedunov
7d3b21130a
Add tests for Java "Move class/package" refactoring
...
#KT-3626 Fixed
2014-02-27 17:00:35 +04:00
Alexey Sedunov
5ba49fbada
Avoid conflicts when moving members wiith package-local visibility
...
Add tests for Java "Move members" refactoring
#KT-4459 Fixed
2014-02-27 17:00:33 +04:00
Alexey Sedunov
d7aa8e7fc8
Testing framework for Move refactoring
2014-02-27 17:00:31 +04:00
Alexey Sedunov
d439de4330
Implement rebinding of simple name references
2014-02-27 17:00:29 +04:00
Alexey Sedunov
86619f5f28
Shorten references: Group elements by file before applying transformation
2014-02-27 17:00:27 +04:00
Alexey Sedunov
d2e6aa2aa5
Allow to shorten class member references
2014-02-27 17:00:24 +04:00
Andrey Breslav
f244cb05eb
Expose lazy scopes to enable calling forceResolveAllContents()
2014-02-27 12:22:19 +04:00
Andrey Breslav
ac8b12baf1
Do not weakly retain caches whose computation has side-effects
...
Lazy scopes write REFERENCE_TARGET to trace as a side-effect, when weak caches are cleared, resolution may be repeated, and a rewrite error happens
2014-02-27 12:22:19 +04:00
Alexander Udalov
4b50262ed6
Regenerate tests
2014-02-26 21:23:42 +04:00
Alexander Udalov
8425f2e668
Copy type parameters for JVM function accessors
...
Otherwise generic signature wasn't correctly written to accessors, resulting in
classfiles not being valid and javac failing to compile Java sources against
them
2014-02-26 21:22:57 +04:00
Andrey Breslav
fbdba0f48d
Test data fixed
2014-02-26 20:48:45 +04:00
Andrey Breslav
a7135fee06
Report CLASS_OBJECT_NOT_ALLOWED for local classes
2014-02-26 19:42:05 +04:00
Svetlana Isakova
71bbc62414
Merge pull request #388 from dezgeg/fix-jump-across-function-boundary
...
KT-4334: Disallow break or continue across a function boundary
2014-02-26 13:28:36 +03:00
Tuomas Tynkkynen
3e451c5811
Disallow break or continue across a function boundary
...
Code containing breaks or continues that attempt to jump across a
function boundary weren't detected during analysis but would crash
the compiler during code generation. Add diagnostics for these kinds
of errors.
Example:
fun f() {
while (true) {
fun inner() {
continue
}
}
}
#KT-4334 Fixed
2014-02-26 00:14:42 +02:00
Andrey Breslav
7c8910bef6
Wrokaround for import clash
2014-02-25 15:12:20 +04:00
Andrey Breslav
da83154454
Nullability fixed for a JS DOM stub
2014-02-25 15:12:20 +04:00
Nikolay Krasko
1c02002e02
KT-4610 Can't run a Kotlin class against class path of a different module
...
#KT-4610 Fixed
2014-02-25 14:34:39 +04:00
Tuomas Tynkkynen
7a2321460d
Prevent expression selector from selecting just a label
...
Previously, extract variable could act on e.g. 'break@outerLoop' and
extract the label, leading into nonsensical 'val x = @outerLoop'.
Prevent JetRefactoringUtil.selectExpression from returning label
expressions to fix this.
#KT-4515 Fixed
2014-02-24 22:40:14 +04:00
Tuomas Tynkkynen
998d2c5ec8
Add tests for JetRefactoringUtil.selectExpression
...
Add tests for JetRefactoringUtil.selectExpression, which is invoked by
e.g. extract variable when some text is selected.
Test cases under idea/testData/expressionSelection/ should contain
Kotlin files with the usual <selection> tags, with the expected result
of selectExpression in the last comment of the file.
2014-02-24 22:40:05 +04:00
Alexander Udalov
4968afebf8
Don't generate bodies of built-in stub methods into interfaces
2014-02-24 21:44:42 +04:00
Alexander Udalov
33ffd3dfca
Add explicit Unit type to declarations of built-ins
2014-02-24 21:44:10 +04:00
Tal Man
89779b5013
2 Intentions for string templates:
...
the first removes curly braces from a simple name variable, ${x} -> $x
and the second does the opposite $x -> ${x}
2014-02-24 21:20:40 +04:00
Zalim Bashorov
559ea28a6b
Dropped extra caret markers and introduced separate marker for referencing from context.
2014-02-24 20:27:20 +04:00
Zalim Bashorov
75e10322d0
Fixed printing usage type in tests and fixed "find usages" tests.
2014-02-24 20:27:19 +04:00
Zalim Bashorov
fc42f3e3ab
Remove unnecessary outdated code from JavaPsiFacadeKotlinHacks.
2014-02-24 20:27:19 +04:00
Zalim Bashorov
033b8289d7
Get JavaFileManager as service.
...
Fix tests after update to IDEA 134.1160 EAP.
2014-02-24 20:27:19 +04:00
Zalim Bashorov
62afa2c742
Update to IDEA 134.1160 EAP
2014-02-24 20:27:19 +04:00
Andrey Breslav
09ee7c5f05
Merge pull request #385 from Stebalien/fix-jetkeywordtoken-docstrings
...
Fix JetKeywordToken docstrings
2014-02-24 17:47:59 +03:00
Andrey Breslav
b999174432
Do not pass BindingTrace into TopDownAnalyzer
2014-02-24 17:27:06 +04:00
Andrey Breslav
c05d4a4837
Unneeded wrapping removed
2014-02-24 17:27:06 +04:00
Andrey Breslav
23527c927b
Unused parameter removed
2014-02-24 17:27:01 +04:00
Andrey Breslav
50a160afb1
Do not pass TopDownAnalysisParameters to injectors
2014-02-24 17:26:04 +04:00
Andrey Breslav
c4dbfbf1a9
Do not inject TopDownAnalysisParameters into ScriptHeaderResolver
2014-02-24 17:26:03 +04:00
Andrey Breslav
153d8c2a52
Do not inject TopDownAnalysisParameters into OverrideResolver
2014-02-24 17:26:02 +04:00
Andrey Breslav
d4a6374d76
Do not inject TopDownAnalysisParameters into ControlFlowAnalyzer
2014-02-24 17:26:02 +04:00
Andrey Breslav
42c7c54ea0
Do not inject TopDownAnalysisParameters into BodyResolver
2014-02-24 17:26:02 +04:00
Andrey Breslav
442658396d
BodiesResolveContext exposes TopDownAnalysisParameters
2014-02-24 17:26:01 +04:00
Andrey Breslav
fb0713d1c2
Do not inject TopDownAnalysisParameters into TopDownAnalyzer
2014-02-24 16:40:05 +04:00
Andrey Breslav
4e0df6fd80
Do not create TopDownAnalysisContext in injectors
2014-02-24 15:52:57 +04:00
Andrey Breslav
f5d2e1f7aa
Do not inject TopDownAnalysisContext into TypeHierarchyResolver
2014-02-24 15:52:56 +04:00
Andrey Breslav
8b88cc8aec
Do not inject TopDownAnalysisContext into OverrideResolver
2014-02-24 15:52:55 +04:00
Andrey Breslav
1abaa9ff20
Do not inject TopDownAnalysisContext into OverloadResolver
2014-02-24 15:52:55 +04:00
Andrey Breslav
25e533a42d
Do not inject TopDownAnalysisContext into ScriptHeaderResolver
2014-02-24 15:52:55 +04:00
Andrey Breslav
7e43f2e61e
Do not inject TopDownAnalysisContext into ImportsResolver
2014-02-24 15:52:54 +04:00