Commit Graph

2877 Commits

Author SHA1 Message Date
Evgeny Gerashchenko 4cbfa9beb6 Added storing alternative signature reading errors in class resolve data. 2012-06-09 16:46:37 +04:00
Evgeny Gerashchenko 7cb591401d Supported alternative signatures for vararg parameters. 2012-06-09 16:46:37 +04:00
Evgeny Gerashchenko b1ba730ebb Ignoring alternative signature annotation if it has syntax errors. 2012-06-09 16:46:37 +04:00
Evgeny Gerashchenko e3da27d62e Fixed typos 2012-06-09 16:46:36 +04:00
Andrey Breslav 52d175108d More details in the assertion 2012-06-09 15:52:16 +04:00
Stepan Koltsov acac0eddc7 formatting 2012-06-08 21:36:49 +04:00
Stepan Koltsov 6946abbcea working on REPL: implemented previous lines importing 2012-06-08 04:19:24 +04:00
Stepan Koltsov 2d88c74635 JvmClassName: equals and hashCode 2012-06-08 03:39:49 +04:00
Stepan Koltsov d1c566f1de JvmClassName: @NotNull, transient annotations 2012-06-08 03:39:30 +04:00
Stepan Koltsov 3620dcab75 JvmClassName.toString 2012-06-08 03:39:18 +04:00
Stepan Koltsov a929f86127 primary field of JvmClassName must be internal name
because fq name can be mapped to different internal names
2012-06-08 03:39:04 +04:00
Stepan Koltsov 5468af848e kill JvmClassName from Class constructor
compiler itself and compiler data should not be mixed
2012-06-08 03:38:42 +04:00
Stepan Koltsov 2ae632aa9a chop Impl suffix when generating field name 2012-06-08 03:38:28 +04:00
Andrey Breslav 48460a8480 A clarifying assertion 2012-06-07 15:45:33 +04:00
Alex Tkachman 03c4e755fa preparations to multi-file compilation 2012-06-06 11:12:39 +03:00
Evgeny Gerashchenko 364cbe3a88 Supported function and tuple types in alternative signatures. 2012-06-05 15:59:18 +04:00
Evgeny Gerashchenko 798ccdc8c4 Supported type parameters in alternative method signatures. 2012-06-05 15:59:18 +04:00
Evgeny Gerashchenko 247e3978d9 Moved alternative signature parsing logic from JDR to separate class. 2012-06-05 15:59:17 +04:00
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