Stepan Koltsov
81cf9b36ff
cleanup in JavaDescriptorResovler
2012-02-15 00:13:33 +04:00
Stepan Koltsov
b67bb356bd
fix inner classes in JavaDescriptorResolver, kill type variable by psi resolver
2012-02-15 00:02:06 +04:00
Stepan Koltsov
9248cf9659
Important JavaDescriptorResolver refactoring
...
This patch implement own member filling with supertype scope. Before this patch JDR relied on
Idea hierarchy resolver.
This patch does two things:
* copies FunctionDescriptors from supertype scopes
* rewrites containingDeclaration similary to how it is done in previous patch
Patch is incomplete, in particular properties are not yet initialized properly, code needs cleanup,
however the most important part of refactoring is done, and tests pass.
2012-02-15 00:02:03 +04:00
Stepan Koltsov
9a41ab3dd6
properly create JavaNamespaceDescriptor for java.lang
2012-02-14 23:40:03 +04:00
Stepan Koltsov
5979cd774c
minor diag in JavaDescriptorResolver
2012-02-14 23:39:31 +04:00
Maxim Shafirov
a03922d467
Copyrights set to Apache, reflecting it's now open source
2012-02-14 19:25:06 +04:00
Stepan Koltsov
4b94eb5e2b
rewrite owner when copying FunctionDescriptor from supertype scope
...
that fixes invocation:
>>> StringBuilder.length()
that was compiled to
>>> invokevirtual CharSequence.length()
and now compiles to
>>> invokevirtual StringBuilder.length()
Essentially patch rewrites FunctionDescriptor.containingDeclaration
when FunctionDescriptor is copied to subclass scope.
FunctionDescriptor now has kind field that can be
* DECLARATION (for "real" function, maybe abstract)
* DELEGATION
* FAKE_OVERRIDE (created for functions from supertypes)
All tests pass although some parts of code are buggy and ugly.
Random comments about this patch:
* FunctionDescriptor.overrides point to function descriptors of supertype scopes
* Filling of memberScope with supertypes is moved to OverrideResolver
* ExpressionCodegen.intermediateValueForProperty must be rewritten
* Patch adds not nice REDECLARATION reports (see compiler/testData/diagnostics/tests/*).
Will be fixed later.
2012-02-10 20:36:40 +04:00
Nikolay Krasko
21394c8486
- KT-1232 Do not place import with default imports in scope after completion
...
- Don't activate not-in-scope completion on typing by default
2012-02-10 16:27:05 +04:00
Nikolay Krasko
f1a2866f0c
KT-1223 Code completion for imported from jars extension functions - don't mute ProcessCanceledException in hack
2012-02-10 14:10:52 +04:00
Nikolay Krasko
3c1758c041
Very temp commit for getting top level function descriptions from java package
2012-02-09 21:05:03 +04:00
Stepan Koltsov
d69739a3d2
temp hack against KT-1214
2012-02-09 16:34:30 +04:00
Maxim Shafirov
f91fa19ea1
memoize psiClass()
2012-02-06 22:09:28 +04:00
Nikolay Krasko
38817014d5
KT-1051 Java interoperability completion (class and subpackages completion)
2012-02-02 14:28:32 +04:00
Stepan Koltsov
0739332d97
Sometimes PsiClass'es are loaded twice for same class
...
This patch is workaround to fix tests.
2012-02-01 21:54:20 +04:00
Stepan Koltsov
a9dedab481
better diag in JavaDescriptorResolver
2012-02-01 17:24:25 +04:00
Stepan Koltsov
e075bec4c0
JavaDescriptorResolver refactoring
...
* kill JavaDescriptorResolver.typeParameterDescriptorCache
* use ClassOrNamespaceDescriptor instead of DeclarationDescriptor
Code is a bit ugly now, but simpler than before.
2012-01-31 22:48:55 +04:00
Maxim Shafirov
f3f725c94f
Code moved to IDEA core
2012-01-31 21:31:51 +04:00
Maxim Shafirov
59c6bd184d
Proper alt class -> sources navigation“
2012-01-31 18:57:01 +04:00
Maxim Shafirov
379e066dac
Correct finder implementation for inner classes
2012-01-31 15:50:59 +04:00
Andrey Breslav
b9ab6d1af2
Fix resolve tests: now the results are checked against alt-headers
2012-01-31 15:43:56 +04:00
Andrey Breslav
1bca00ea96
A stub workaround for exception thrown when something is annotated with @Retention(RetentionPolicy.RUNITME) or something like this
2012-01-31 14:50:00 +04:00
Nikolay Krasko
2826db7d9a
KT-1103 Public outer function from different package and source file is not visible in completion:
...
- Stubs elements are enabled
- Changed method for selecting indexing policy for plugin and compiler
- Quick fix for import unresolved top-level function added
2012-01-31 14:10:08 +04:00
Maxim Shafirov
dbbd4c6902
Make sure alt-headers actually work in "core" environment
2012-01-31 13:37:40 +04:00
svtk
1d71e820bb
KT-1185 Support full enumeration check for 'when'
2012-01-30 13:39:44 +04:00
Maxim Shafirov
786a3bbee8
dead code
2012-01-27 19:59:35 +04:00
Maxim Shafirov
d3c5b8ec44
Direct call to lib/alt jars
2012-01-27 19:26:25 +04:00
Stepan Koltsov
bfb1b6e7b5
read kotlin supertypes in JavaDescriptorResolver
...
+ tests
+ remove jet.Any from supers
2012-01-27 14:25:55 +04:00
Maxim Shafirov
6084557af8
Naive kotlin-jdk-headers.jar usage implementation
2012-01-26 22:03:37 +04:00
Stepan Koltsov
4bd4454363
more JavaDescriptorResolver refactoring
2012-01-26 15:32:10 +04:00
Stepan Koltsov
9b2e4c7d16
refactoring JavaDescriptorResolver and Java*Scope
2012-01-26 14:37:25 +04:00
Andrey Breslav
92e496c43b
Constructors for Java annotations
2012-01-26 13:43:46 +04:00
Alex Tkachman
c5d88251a9
CharSequence added in to stdlib
2012-01-25 22:09:32 +02:00
Andrey Breslav
f8123e5fb3
Basic support for Java and Kotlin annotations
2012-01-25 19:35:42 +04:00
Stepan Koltsov
309b6b3e0e
fix erased parameters codegen and parsing
2012-01-24 23:11:14 +04:00
Stepan Koltsov
614ee5d690
java.lang.String in signature should serialized and mapped back to java.lang.String
2012-01-24 00:38:26 +04:00
Stepan Koltsov
45cc0cd99e
properly read fields of array type from java bytecode
...
KT-1086
2012-01-23 19:12:19 +04:00
Nikolay Krasko
c52e56740d
KT-983 Code completion for not-imported classes - Show kotlin classes (another temp commit)
2012-01-23 15:20:57 +04:00
Maxim Shafirov
f541cce098
Get full/core versions of IDEA using update_dependencies.xml. Don't use plugin SDK anymore.
2012-01-20 19:17:32 +04:00
svtk
7fae503a38
KT-1080 Don't use previously imported packages while resolving import references
2012-01-20 11:58:17 +04:00
Stepan Koltsov
b6590a3814
codegen: fix calls to global functions when loaded from java descriptors
2012-01-19 18:05:00 +04:00
Stepan Koltsov
a6bea1480f
read class data: fix IntRange loading
2012-01-18 12:08:35 +04:00
Stepan Koltsov
df9a4c7786
allow two ext properties with same name in one package
2012-01-18 12:08:35 +04:00
Andrey Breslav
509e018954
Merge remote branch 'origin/master'
2012-01-18 12:07:12 +04:00
Andrey Breslav
c5ef3602e3
KT-497 IndexOutOfBounds on correct code: a stub fix
...
#KT-497 In Progress
2012-01-18 12:04:57 +04:00
Stepan Koltsov
106846e868
ReadKotlinBinaryClassTest: nullability
2012-01-18 12:03:58 +04:00
Stepan Koltsov
6ceb6816be
ReadKotlinBinaryClassTest: List<*>
2012-01-18 12:03:42 +04:00
Stepan Koltsov
0229e725ab
read class data: resolve Function* types
2012-01-18 12:03:23 +04:00
Stepan Koltsov
4ded2e79ad
refactor java descriptor resolver
2012-01-18 12:01:00 +04:00
Stepan Koltsov
5c6823a094
ReadJavaBinaryClassTest: Any
2012-01-18 11:56:14 +04:00
Stepan Koltsov
0f9a21a305
no error scope in good type
...
propagate error types in several sites
2012-01-17 19:33:47 +04:00