Andrey Breslav
71ad59fdf8
Minor. Unused slice and comments removed
2014-04-29 19:12:56 +04:00
Andrey Breslav
a1b0b07824
Support top-down analysis starting from anonymous initializers
2014-04-29 19:12:56 +04:00
Andrey Breslav
bac82935c3
Minor. Unused method removed
2014-04-29 19:12:56 +04:00
Andrey Breslav
6509868ba4
Ignore multi-declarations in LazyTopDownAnalyzer
2014-04-29 19:12:55 +04:00
Andrey Breslav
550c0ed998
Report "UNSUPPORTED" on usages of typedef
2014-04-29 19:12:55 +04:00
Andrey Breslav
469042dea1
Support top-down analysis starting from import directives
2014-04-29 19:12:55 +04:00
Andrey Breslav
9f8fd5c5ae
Support top-down analysis starting from package directives
2014-04-29 19:12:55 +04:00
Andrey Breslav
31e859356f
A test that fails in lazy mode (currently disabled)
2014-04-29 19:12:55 +04:00
Andrey Breslav
5c23021163
Minor. Rename
2014-04-29 19:12:55 +04:00
Andrey Breslav
4bbde707c0
Minor. Unneeded getContainingJetFile() calls removed
2014-04-29 19:12:54 +04:00
Andrey Breslav
64f60b3458
Minor. getAnalysisResults(x).getBindingContext() replaced by getBindingContext(x)
2014-04-29 19:12:54 +04:00
Andrey Breslav
112109f93e
Minor. Unused method removed
2014-04-29 19:11:48 +04:00
Andrey Breslav
23205c17c0
Utilities for analyzing expressions in given context introduced
2014-04-29 19:11:48 +04:00
Andrey Breslav
a708b915db
Explicit predicate passed to JetNameValidatorImpl
2014-04-29 19:11:48 +04:00
Andrey Breslav
c6bd4a22ef
Iterators replaced with streams where appropriate
2014-04-29 19:11:47 +04:00
Andrey Breslav
19719f9747
Deprecated _tmp functions replaced by library ones
2014-04-29 19:11:47 +04:00
Andrey Breslav
4181bcc319
JavaCallableMemberDescriptor.hasSynthesizedParameterNames() introduced
2014-04-29 19:11:47 +04:00
Nikolay Krasko
9482706b81
Fix compilation on JDK 1.6 and stay compatible with JDK 1.7
...
Move ClassCandidateListCellRenderer back to Java because JList. JList has one type parameter in 1.7 and no parameters in 1.6.
Kotlin unlike Java can't support both cases without modifications in code.
2014-04-29 14:47:33 +04:00
Steven Allen
1415ac1c04
Convert CreateFunctionFromUsageFix to Kotlin.
2014-04-29 14:47:32 +04:00
Steven Allen
1a04b887a4
Fix JetSimpleNameExpression.getReceiverExpression
...
The receiver of `in` expressions is on the right, not the left.
2014-04-29 14:47:31 +04:00
Andrey Breslav
4f1061c337
Better memory cleanup in tests
2014-04-29 13:37:02 +04:00
Natalia Ukhorskaya
68c77e6384
SmartStepInto from kotlin to java functions
2014-04-28 14:24:01 +04:00
Natalia Ukhorskaya
5a2f1ca65f
Add package directive with fileName for InspectionTests to avoid names clashing
2014-04-28 14:12:57 +04:00
Svetlana Isakova
335587c74e
Update to IDEA 135.760 EAP
2014-04-25 21:02:45 +04:00
Denis Zharkov
cb1e762fc4
Optimizations of When expression with int constants:
...
Added test with dense constants (tableswitch should be used)
2014-04-25 18:17:37 +04:00
Denis Zharkov
298742ae69
Optimizations of When expression with int constants: heuristics from openJDK for decision about using tableswitch/lookupswitch
2014-04-25 18:17:37 +04:00
Denis Zharkov
a83d600f5e
Optimizations of When expression with int constants: pull request review fixes
2014-04-25 18:17:36 +04:00
Denis Zharkov
3bc1c45fde
Refactored tests for switch optimization of When expression
2014-04-25 18:17:36 +04:00
Denis Zharkov
95345a9bd4
Tests for switchOptimization: shuffled and added sparse version
2014-04-25 18:17:36 +04:00
Denis Zharkov
ad14ee9061
Switch in when-expression: choice between lookupswitch and table switch (heuristically)
2014-04-25 18:17:36 +04:00
Denis Zharkov
1952781e4b
SwitchOptimization: generating `lookupswitch' opcode for 'when' in case of integral types
2014-04-25 18:17:36 +04:00
Denis Zharkov
c73533d214
Switch Optimization
2014-04-25 18:16:24 +04:00
Ross Hanson
ecaa7b61dd
KT-4568 Bugfix: Reformatted code to adhere to style guides. Removed unreachable cases in when expression for ConvertNegatedExpression. Fixed last element access. Changed array list to simple list.
2014-04-25 16:59:50 +04:00
Ross Hanson
a5f7ac63a8
KT-4568: Cleaned up some of the code in ConvertNegatedBooleanSequence to match the other DeMorgan intention
2014-04-25 16:59:49 +04:00
Ross Hanson
4de6960443
KT-4568 Bug Fix: Refactored the convertNegatedExpressionWithDemorgansLaw intention to better handle longer and more complex expressions. Fixed bug and added appropriate test cases as well.
2014-04-25 16:59:49 +04:00
Alexander Udalov
de273c0418
Minor, use kotlin.Pair instead of intellij
2014-04-24 18:17:50 +04:00
Lingzhang
6066d19de5
Added KT-4579 makeTypeExplicitInLambda and makeTypeImplicitInLambda intentions
2014-04-24 18:11:43 +04:00
Natalia Ukhorskaya
1ef785eb1a
Eval4j: delete IDEA project files
2014-04-24 16:48:17 +04:00
Natalia Ukhorskaya
73f1ea3bcc
Eval4j: fix ReadMe
2014-04-24 16:48:02 +04:00
Natalia Ukhorskaya
f23d95031c
Remove MockPsiDocumentManager: it is registered in CoreProjectEnvironment
2014-04-24 16:38:50 +04:00
Natalia Ukhorskaya
805da98fa1
Remove hamcrest library, it is included in idea full
2014-04-24 16:38:48 +04:00
Natalia Ukhorskaya
aefed988a3
Add run configuration for Eval4j tests
2014-04-24 16:38:34 +04:00
Natalia Ukhorskaya
a8ea10de27
add common test suite for eval4j
2014-04-24 16:37:14 +04:00
Natalia Ukhorskaya
1e0a4ddbdd
Eval4j: always cast int to byte, short, boolean and char when they are expected
2014-04-24 16:35:47 +04:00
Andrey Breslav
5536f4da07
Test data generated from both files separated in 717f03f474
2014-04-24 16:22:43 +04:00
Alexander Udalov
1efdd33dbd
Refactor codegen hierarchy
...
- pull generate() and a bunch of abstract methods from ClassBodyCodegen up to
MemberCodegen
- implement these methods in ScriptCodegen and PackagePartCodegen
- make MemberCodegen generic on the type of the element it is generating
2014-04-24 16:10:16 +04:00
Alexander Udalov
ff8e282c4a
Simplify mapToCallableMethod
2014-04-24 16:10:16 +04:00
Alexander Udalov
722c15b747
Simplify mapOwner/mapToCallableMethod
2014-04-24 16:10:15 +04:00
Alexander Udalov
61675de305
Optimize PropertyMetadataImpl instance creation
...
Create all property metadatas in <clinit> and save them to a static array
$propertyMetadata. Getter/setter of each delegated property will then just
obtain the corresponding instance from that array
#KT-4232 Fixed
2014-04-24 16:10:15 +04:00
Alexander Udalov
925b27238c
Minor, simplify StackValue.ArrayElement
2014-04-24 16:10:15 +04:00