Commit Graph

13667 Commits

Author SHA1 Message Date
Andrey Breslav eacb731308 Support SAM constructors 2014-01-15 16:14:47 +04:00
Andrey Breslav 9356af8d73 No classes are resolved through package scope for class static members 2014-01-15 16:14:47 +04:00
Andrey Breslav 7619e8f3c7 Support SAM adapters for functions and constructors 2014-01-15 16:14:46 +04:00
Andrey Breslav 834db7a7cc Properly account for constructor's own type parameters 2014-01-15 16:14:46 +04:00
Andrey Breslav cc1d8448ed Prevent lazy types to be accidentally computed in debug 2014-01-15 16:14:45 +04:00
Andrey Breslav c94b658462 Nullability fixed for upper bounds that are not type parameters 2014-01-15 16:14:45 +04:00
Andrey Breslav 5c64ad93f8 Properly map annotation classes and account for @Deprecated 2014-01-15 16:14:45 +04:00
Andrey Breslav 34234485a5 Properly look up annotations 2014-01-15 16:14:44 +04:00
Andrey Breslav 0378551b72 Allow for Kotlin class resolution 2014-01-15 16:14:44 +04:00
Andrey Breslav 6257471e24 Prevent recursion on getting all subpackages 2014-01-15 16:14:44 +04:00
Andrey Breslav 924ff03c1c JavaDescriptorResolver exposed for tests 2014-01-15 16:14:43 +04:00
Andrey Breslav aa34310770 Properly transforming type parameters in case of raw types, and mismatches between parameter and argument numbers
NOTE: JetType.getArguments() now implies that JetType.getConstructor() is computed. In most use cases this happens anyways due to the logic of the client code
2014-01-15 16:14:43 +04:00
Andrey Breslav c13b77d94c Take care of Java's constructor type parameters 2014-01-15 16:14:43 +04:00
Andrey Breslav 2f2332bfe2 No need for applyNullability() 2014-01-15 16:14:42 +04:00
Andrey Breslav 4a15c6728d Propagation and alternative signatures for functions in Java 2014-01-15 16:14:42 +04:00
Andrey Breslav 089352b525 isError() implemented for lazy java types 2014-01-15 16:14:41 +04:00
Andrey Breslav 03a9c776b2 Support loading Java fields as properties 2014-01-15 16:14:38 +04:00
Andrey Breslav 03cb977b2a Support overrides in Java classes 2014-01-15 16:07:40 +04:00
Andrey Breslav d79403d82c Don't fail on star projections for error types 2014-01-15 16:07:40 +04:00
Andrey Breslav 78a4b6fff6 Error class descriptor must not fail an attempt to create a type with arguments from it 2014-01-15 16:07:39 +04:00
Andrey Breslav b3f9dddc84 All extra services delivered through contexts 2014-01-15 16:07:39 +04:00
Andrey Breslav 297bfd2903 Resolve functions in packages loaded from Java classes 2014-01-15 16:07:39 +04:00
Andrey Breslav eb56550c54 Properly load Java classes as packages 2014-01-15 16:07:38 +04:00
Andrey Breslav 521c203f76 Proper toString() added to lazy classes 2014-01-15 16:07:38 +04:00
Andrey Breslav 5eacd6bdee Differentiate package fragments loaded from java packages and java (static) classes 2014-01-15 16:07:38 +04:00
Andrey Breslav 8dc526a5e1 isEmpty() and flatten() added 2014-01-15 16:07:38 +04:00
Andrey Breslav e0d890853d Adding submodule to the context 2014-01-15 16:07:38 +04:00
Andrey Breslav 65316b9fab printAndReturn() added 2014-01-15 16:07:38 +04:00
Andrey Breslav ba81e40ccb Constructors supported 2014-01-15 16:07:37 +04:00
Andrey Breslav d0d77181e3 ifEmpty for collections 2014-01-15 16:07:37 +04:00
Andrey Breslav cee4c0c29d All Java classes extend java.lang.Object (directly or indirectly) 2014-01-15 16:07:37 +04:00
Andrey Breslav 1ea9be67c4 Support netsted classes 2014-01-15 16:07:37 +04:00
Andrey Breslav 2620c872ab JavaDescriptorResolver can work in lazy or non-lazy mode 2014-01-15 16:07:37 +04:00
Andrey Breslav cc06e4aaf9 Basic implementation for class resolver 2014-01-15 16:07:36 +04:00
Andrey Breslav 9ace8eedf1 Resolving functions (no propagation/alternative signatures) 2014-01-15 16:07:36 +04:00
Andrey Breslav 8b6047e48f Allow to trigger search for external annotations lazily 2014-01-15 16:07:36 +04:00
Andrey Breslav bed01b601b Annotations supported 2014-01-15 16:07:36 +04:00
Andrey Breslav 93dc130e79 Initial version of lazy Java type resolver 2014-01-15 16:07:36 +04:00
Andrey Breslav 8a354ccd15 JDR subsystem: utility methods made public 2014-01-15 16:07:35 +04:00
Andrey Breslav 9879965407 Library functions 2014-01-15 16:07:35 +04:00
Andrey Breslav 36dd874c27 coreLib and Java collections utilities 2014-01-15 16:07:35 +04:00
Andrey Breslav d0a93f8be0 Pull common method up 2014-01-15 16:07:35 +04:00
Nikolay Krasko 97759f5bb7 Add method for getting all classifiers with given name from the scope 2014-01-15 16:03:50 +04:00
Nikolay Krasko c46214fd31 Refactoring: use selectors for chain scope behaviour implementation 2014-01-15 16:00:34 +04:00
Nikolay Krasko 297d473273 Refactoring: Move class 2014-01-15 15:19:39 +04:00
Nikolay Krasko 4de9b2d205 Minor: remove waring about annotation absence in JetScope class 2014-01-15 14:05:09 +04:00
Nikolay Krasko 320635c2a4 Minor: add 'goto' to dictionary 2014-01-15 13:09:27 +04:00
Evgeny Gerashchenko 41f61c22e5 Fixed file name case (to fix tests on Linux). 2014-01-14 22:38:12 +04:00
Evgeny Gerashchenko ad44860604 Fixed file name case (to fix tests on Linux). 2014-01-14 22:11:32 +04:00
Evgeny Gerashchenko c924a5d097 Test for KT-3444 Front-end doesn't check if local function or function of anonymous class returns value
#KT-3444 obsolete
2014-01-14 19:13:19 +04:00