Commit Graph

1409 Commits

Author SHA1 Message Date
Evgeny Gerashchenko 968d159f86 Fixed NPE when no type ref is specified in Kotlin signature. 2012-06-05 15:59:17 +04:00
Evgeny Gerashchenko 9c8da5ad9c Reverted some usages of JvmClassName(Class) constructor. They introduce conceptual problems, but not much profit. 2012-06-04 17:33:35 +04:00
Evgeny Gerashchenko dce64d5166 Added JvmClassName(Class) constructor. Replaced some JvmClassName(String) usages with it. 2012-06-04 15:28:03 +04:00
Evgeny Gerashchenko 688b509b96 Implemented basic @KotlinSignature parsing. Now it works for functions without type parameters and varargs. 2012-06-04 15:28:02 +04:00
Evgeny Gerashchenko 08b19a72ab Added KotlinSignatureAnnotation wrapper class, and added it into PsiMethodWrapper. 2012-06-04 15:28:02 +04:00
Evgeny Gerashchenko 43e83956cc Introduced @KotlinSignature annotation to be used on methods. 2012-06-04 15:28:02 +04:00
Nikolay Krasko 8d69af87ce Completion for java inner class names 2012-05-31 19:58:05 +04:00
Andrey Breslav 6f28638e80 Remove useless ObservableBindingTrace from DI 2012-05-31 19:29:06 +04:00
Andrey Breslav 423ed30e91 Fix compilation again 2012-05-31 14:17:26 +04:00
Andrey Breslav 1ab693be09 Fix compilation 2012-05-31 14:10:32 +04:00
Stepan Koltsov 22be8ad49a do not include error types in hierarchy 2012-05-30 21:47:19 +04:00
Stepan Koltsov 7c0b8876ca fix more errors of incomplete classpath
after this commit project without JDK configured is not all red
2012-05-30 21:04:47 +04:00
Stepan Koltsov a7aeba4e48 JDR: do not crash if signature references nonexistent class 2012-05-30 21:04:47 +04:00
Stepan Koltsov 3a3cbd53d8 JavaDescriptorResolver should not crash if there is no original for alt-header
(before this commit it crashed because package was not searched in alt-headers)

This commit makes JDR ignore alt-header if original is not found
2012-05-30 21:04:47 +04:00
Stepan Koltsov 30e44fdc5f script parameters
still a lot of things to do
2012-05-28 20:31:29 +04:00
Andrey Breslav e4007992c6 Extract interface: TypeParameterDescriptor
A lot of code relied on these descriptors being mutable. In most cases I managed to work around this,
 but there're still are casts to raw List necessary in one or two places
2012-05-28 20:02:36 +04:00
Stepan Koltsov a1714d99cf DependencyClassByFqNameResolver 2012-05-28 17:34:44 +04:00
Svetlana Isakova dfbd9922d9 fixes after merge
get rid of JetControlFlowDataTraceFactory
2012-05-28 12:32:45 +04:00
Nikolay Krasko e946a0f908 - Out of block modification strategy for Kotlin block expression
- Separate project analysis for IDEA needs: headers + bodies
2012-05-27 17:39:56 +04:00
Evgeny Gerashchenko bf62877e2b Replaced Usage of PathUtil.jarFileToVirtualFile() to PathUtil.jarFileOrDirectoryToVirtualFile(), removed the former. 2012-05-23 17:35:24 +04:00
Evgeny Gerashchenko ea36cf9fb0 Reverted all changes related to renaming jdkHeaders to altHeaders. 2012-05-23 17:05:09 +04:00
Stepan Koltsov 33a59ff5fe Name class
In the most places in frontend identifier is stored in Name class, was in String.
Name has two advantages over String:
* validation: you cannot accidentally create identifier with dot, for example
* readability: if you see String, you don't now whether it is
  identifier, fq name, jvm class name or something else

Name's disadvantage is (small) performance overhead. We have no value types in JVM.
2012-05-23 02:52:32 +04:00
Stepan Koltsov 3c64fbb2a0 LabelName stores label name
TODO: uncomment assertions in LabelName constructor
2012-05-23 02:52:31 +04:00
Stepan Koltsov ecc4c484a6 move NameUtils, FqName into name subpackage 2012-05-23 02:52:30 +04:00
Stepan Koltsov f4051f45ab generate bytecode for script
It is just prototype

* does not make top level symbols visible as class members yet
* does not take parameters
* Script class name is hardcoded now
2012-05-23 02:52:29 +04:00
Svetlana Isakova c2385407e0 KT-1942 Package local members from Java are visible in subclasses
#KT-1942 fixed
2012-05-21 18:32:19 +04:00
James Strachan 06f8e27d78 added better validation to throw more meaningful error message if a file is null 2012-05-18 19:48:47 +01:00
Evgeny Gerashchenko 15f6e7403e Renamed jdkHeaders to altHeaders in all places where it makes sense. 2012-05-15 15:19:55 +04:00
Evgeny Gerashchenko 4ab2588cbd Made compiler aware of multiple alt-header paths. 2012-05-15 15:19:55 +04:00
Stepan Koltsov 8c8ed3a1ee KT-1388 Parse static final fields from java binary classes as non-null
#KT-1388 Fixed
2012-05-13 00:53:37 +04:00
Stepan Koltsov f061fce9a8 properly read vararg signature from java code
KT-1694 Java vararg override, Why is it intuitive interface?

#KT-1694 Fixed
2012-05-12 22:21:09 +04:00
Nikolay Krasko 2dba348ecb Intermediate major refactorings for lazy resolve 2012-05-11 18:58:54 +04:00
Stepan Koltsov ded824468a replace String with JvmClassName 2012-05-11 01:08:33 +04:00
Stepan Koltsov dd332bc08c -mode idea
#KT-1893 Fixed
2012-05-04 23:57:13 +04:00
Stepan Koltsov 78a4ebe236 comma 2012-05-04 23:57:12 +04:00
Stepan Koltsov 743c14f239 JDR: hide static members from superclasses
#KT-1880 Fixed
2012-05-04 19:06:57 +04:00
Andrey Breslav 08c074c5be SubstitutionUtils extracted from TypeUtils 2012-05-03 17:08:43 +04:00
Stepan Koltsov 28dc1ba6be resolve int vararg from java 2012-05-03 17:05:37 +04:00
pTalanov ce929fab49 Rename CompileEnvironmentConfiguration. Drop ArgsUtil class. Add CompilerSpecialMode.JS. 2012-05-02 15:23:40 +04:00
Andrey Breslav 08de6d8d07 KT-1863 Wrong nullability for class derived from java classes.
#KT-1863 In progress
2012-04-28 23:13:41 +04:00
Stepan Koltsov 7352da34ef resolve type parameters that reference type variables declared after
like

Aaa<B extends Bbb<C>, C>

#KT-1731 fixed
2012-04-28 17:43:53 +04:00
Stepan Koltsov 615330ca75 identified can have last segment "namespace", for instance, javax.xml.namespace 2012-04-28 17:43:53 +04:00
Stepan Koltsov 7af5282a26 resolve generic constructor 2012-04-28 17:43:52 +04:00
Stepan Koltsov e959c62ee4 remove unused code 2012-04-27 19:09:39 +04:00
Stepan Koltsov fca0b8a530 extract resolveConstructor method 2012-04-27 19:09:38 +04:00
Stepan Koltsov 225c9b4fa0 java classes should extend java.lang.Object
#KT-1121 fixed
2012-04-27 16:16:02 +04:00
Stepan Koltsov 3b43f30824 add JDK to CompilerDependencies 2012-04-25 19:36:22 +04:00
Stepan Koltsov 4a1c36d733 fix complex case of recursion in JavaDescriptorResolver
#KT-1804
2012-04-24 22:14:01 +04:00
Stepan Koltsov 0f3aa9e567 remove nop code 2012-04-24 22:14:00 +04:00
Stepan Koltsov 7c8937bd2d JavaDescriptorResolver: negative package cache
Time spent in JavaDescriptorResolver.resolveNamespace reduced from 10% to 5%
in CompileCompilerDependenciesTest
2012-04-21 18:03:53 +04:00