Nikolay Krasko
dd45da01d1
Fix "Extract variable" for anonymous object suggests name "nonameprovided" (KT-4813)
...
#KT-4813 Fixed
2014-04-05 04:41:31 +04:00
zarechenskiy
43b41f6db9
Implement formatMethod in JavaSignatureFormatter without PSI
2014-04-04 17:40:37 +04:00
zarechenskiy
fe48051041
Remove acces to JavaPropertyInitializerEvaluator through ServiceLoader by injecting it in GenerateInjectors
2014-04-04 17:40:37 +04:00
zarechenskiy
2e4028ba3a
Move method createArrayType to JavaType and drop JavaElementFactory
2014-04-04 17:40:36 +04:00
zarechenskiy
735df2e340
Drop getExternal method from JavaSignatureFormatter
2014-04-04 17:40:36 +04:00
zarechenskiy
d7337fbe94
Remove PSI in TraceBasedExternalSignatureResolver, AlternativeFieldSignatureData, AlternativeMethodSignatureData
2014-04-04 17:40:35 +04:00
Alexander Udalov
77b2b29641
Show uninitialized descriptor's name in DeclarationDescriptor.toString()
2014-04-04 17:40:34 +04:00
Nikolay Krasko
5606c21f89
Remove synchronous VFS refresh to avoid deadlocks (KT-4584)
...
#KT-4584 Fixed
2014-04-04 02:10:31 +04:00
Nikolay Krasko
48570ebc64
Automatically enable Kotlin plugin if it was disabled
2014-04-04 02:10:30 +04:00
Nikolay Krasko
6e8c1df5ee
Minor: fix always null warning
2014-04-04 02:10:29 +04:00
Nikolay Krasko
a7bc9ec96c
Minor: use directive with current ABI version in test data
2014-04-04 02:10:29 +04:00
Alexander Udalov
8006fcc819
Minor, add assertion message
2014-04-03 19:33:22 +04:00
Alexander Udalov
750d3e8de7
Drop MutableClassDescriptorLite
...
Inline it into MutableClassDescriptor
2014-04-03 19:13:11 +04:00
Alexander Udalov
cbe6e49a93
Consider outer classes when topsorting hierarchy
...
- when building a topsorted hierarchy, consider not only edges to the class'
superclasses, but also from inner/nested classes to their container. This
effectively means that a class cannot inherit from its nested class. Similar
cases (see the tests) are disallowed in Java.
- filter classes by their presence in TopDownAnalysisContext, not by being a
MutableClassDescriptor (otherwise analysis for local classes ends up trying
to do something with outer superclasses)
- delete outdated comment: topsort is needed not only for better diagnostics,
but also for correct order of fake overrides construction
2014-04-03 19:12:56 +04:00
Alexander Udalov
9b2291d381
Fix StackOverflowError on cyclic hierarchy Java<->Kotlin
...
Report errors not only when superclasses are MutableClassDescriptorLite, but
any classes
#KT-2115 Fixed
2014-04-03 19:04:12 +04:00
Alexander Udalov
4241eb9661
Regenerate tests
2014-04-03 19:02:56 +04:00
Alexander Udalov
a485f24217
Don't serialize signature to string to check against toString/hashCode/equals
2014-04-03 01:24:39 +04:00
Alexander Udalov
9fbe2c7cbc
Minor, remove read check in WriteThroughScope
...
Without this, it's difficult to debug errors related to writing to the already
locked scope: if you set a conditional breakpoint in checkMayRead() on a
scope's toString(), its toString() will call getContainingDeclaration(), which
will call checkMayRead() again, resulting in StackOverflowError
2014-04-03 01:24:38 +04:00
Zalim Bashorov
96d5a1d0e6
JS backend: test both versions of Map(Complex and Primitive)
2014-04-02 17:50:40 +04:00
Zalim Bashorov
336ff43b26
JS backend: - test both versions of Set(Complex and Primitive)
...
- added size in PrimitiveSet
- fixed contains in PrimitiveSet
#KT-4796 fixed
2014-04-02 17:50:40 +04:00
Zalim Bashorov
6c1ed450a2
Added the directive for allow to use runtime classes in intention tests.
2014-04-02 16:00:09 +04:00
Andrey Breslav
4f44c7ba9c
Unused mechanism removed
...
Incomplete traces are not needed for light classes any more, because light classes use lazy resolve
2014-04-02 15:48:58 +04:00
Andrey Breslav
96a812b36e
Minor. Rename method BodiesResolveContext.getClasses()
...
This is done to avoid the clash of meanings with TopDownAnalysisContext.getAllClasses()
2014-04-02 15:48:58 +04:00
Andrey Breslav
98e6b7ddbe
Top-down analysis accounts for script classes too
2014-04-02 15:48:57 +04:00
Andrey Breslav
0f422df98f
In non-lazy mode, script classes are normal MutableClassDescriptors
2014-04-02 15:48:57 +04:00
Andrey Breslav
989079e4fc
Properties from primary constructors added to getAllDescriptors()
2014-04-02 15:48:56 +04:00
Andrey Breslav
9f70364aff
Add 'rv' property to getAllDescriptors() in script classes
2014-04-02 15:48:56 +04:00
Andrey Breslav
363fdf4045
Account for script classes in getAllDescriptors()
2014-04-02 15:48:56 +04:00
Andrey Breslav
d51fd634df
Script classes are public in LAZY mode
2014-04-02 15:48:55 +04:00
Pavel V. Talanov
6ba8e4c4b1
Switch JetMultifileBasicCompletionTest to generated approach
2014-04-02 13:37:18 +04:00
Pavel V. Talanov
4c634d5c67
Use common infrastructure for JetMultifileBasicCompletionTest
2014-04-02 13:37:17 +04:00
Pavel V. Talanov
4275fa9cd3
Make JetCompletionMultiTestBase extend JetFixtureCompletionBaseTestCase
2014-04-02 13:37:16 +04:00
Pavel V. Talanov
3fdb548a9d
Introduce JetModifierKeywordToken to mark keywords which can be used as modifiers
...
Change JetModifierList and JetModifierListOwner api to accept only those tokens
2014-04-02 13:37:15 +04:00
Andrey Breslav
f0bab0c6d1
Annotations on lazy classes are resolved lazily
2014-04-02 13:28:48 +04:00
Zalim Bashorov
b43958f4b3
Fixed tests after adding error checking for intention tests.
2014-04-01 20:49:24 +04:00
Zalim Bashorov
8d19c7309b
Minor: use canonical path to expected file in intention tests.
2014-04-01 18:52:31 +04:00
Zalim Bashorov
3375ed90a4
IDEA plugin: added the error checking to intentions tests.
2014-04-01 17:28:55 +04:00
Andrey Breslav
d5eea09146
Imports moved from under the script node to top level
2014-04-01 12:36:52 +04:00
Andrey Breslav
7bdc56d895
Script-related code extracted to subclasses
2014-04-01 12:36:52 +04:00
Andrey Breslav
64a80baacc
Support script return value field in LAZY mode
2014-04-01 12:36:51 +04:00
Andrey Breslav
b8119a57ab
Script parameters supported in LAZY mode
2014-04-01 12:36:51 +04:00
Andrey Breslav
1335152625
ResolveSession caches script descriptors
2014-04-01 12:25:33 +04:00
Andrey Breslav
77261330b9
Only use script parameters from definition
...
Passing parameters of a _single_ script into TopDownAnalyser makes no sense
2014-04-01 12:25:33 +04:00
Andrey Breslav
086e16f67f
ResolveSession knows about script classes
2014-04-01 12:25:33 +04:00
Andrey Breslav
b48d9884ee
Minor. Better assertion message
2014-04-01 12:25:33 +04:00
Andrey Breslav
d909a03453
Minor. ScriptNameUtil works on scripts, not files
2014-04-01 12:25:32 +04:00
Andrey Breslav
caa80a0552
DeclarationProvider now returns ClassLikeInfo's instead of PSI
2014-04-01 12:25:32 +04:00
Andrey Breslav
06e901e2c7
Minor. Missing final added
2014-04-01 12:25:32 +04:00
Andrey Breslav
7933f07bdd
Avoid rewrites between script body checking and class members
2014-04-01 12:25:32 +04:00
Andrey Breslav
6ac2e2da8a
Support scripts in LAZY mode
2014-04-01 12:25:32 +04:00