Commit Graph

14946 Commits

Author SHA1 Message Date
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
Andrey Breslav 5166c73060 Property descriptor initialization moved to DescriptorResolver 2014-04-01 12:25:32 +04:00
Andrey Breslav 214465a81c Extract method 2014-04-01 12:25:31 +04:00
Andrey Breslav 76e286aacc ScriptParameterResolver extracted 2014-04-01 12:25:31 +04:00
Andrey Breslav e683a28689 Minor. Extract method 2014-04-01 12:25:31 +04:00
Andrey Breslav f81bf5ea73 Do not add functions and properties with inferred types as script class memebrs 2014-04-01 12:25:31 +04:00
Andrey Breslav 9a1f8b9cc6 Trace is not injected into ScriptBodyResolver any more 2014-04-01 12:25:31 +04:00
Andrey Breslav 5ef329b713 Store scope for body resolution in ScriptDescriptor 2014-04-01 12:25:31 +04:00
Andrey Breslav 3e957031b9 Minor. Method moved to where it belongs 2014-04-01 12:25:30 +04:00
Andrey Breslav efd752290e Minor. Extract method 2014-04-01 12:25:30 +04:00
Andrey Breslav e24a90a73a Minor. Logic moved up the call stack 2014-04-01 12:25:30 +04:00
Andrey Breslav bbf9523c04 getValueParameters() removed from ScriptDescriptor 2014-04-01 12:25:30 +04:00
Andrey Breslav 04f21eee50 getReturnType() removed from ScriptDescriptor 2014-04-01 12:25:30 +04:00
Andrey Breslav 39c06e19e4 Minor. Comment removed 2014-04-01 12:25:30 +04:00
Andrey Breslav 19e5e322fe Cast moved to the call-site 2014-04-01 12:25:29 +04:00
Andrey Breslav 7191763c17 Extract interface: ScriptDescriptor 2014-04-01 12:25:29 +04:00
Mikhael Bogdanov e2f3a589e7 KT-3308 Support local generic functions in codegen
#KT-3308 Can'tReproduce
2014-04-01 11:18:16 +04:00
Mikhael Bogdanov 4269729b0a KT-3214: Verify error when get array convention is used with varargs
#KT-3214 Can'tReproduce
2014-04-01 11:18:16 +04:00