Alexander Udalov
7eff1292f0
Make an abstraction over VirtualFileFinder
...
Java descriptor loader now can work with KotlinClassFinder, which finds
abstract KotlinJvmBinaryClass'es: they are based on VirtualFile in the
compiler/IDE and will be based on j.l.Class in the reflection
2013-10-02 17:05:50 +04:00
Evgeny Gerashchenko
eb5455e89f
Got rid of "jet" file extension.
2013-10-01 19:32:38 +04:00
Evgeny Gerashchenko
2c877f080e
Introduced CompositeExtension (to pass several of them).
2013-10-01 15:06:57 +04:00
Alexander Udalov
5fa489b7d3
Add 'topLevelMemberInvocation.twoModules' test to CompileBinaryTestData
2013-09-30 22:43:18 +04:00
Alexander Udalov
ee92ebe941
Move Kotlin descriptor loading to kotlin/ package
2013-09-30 22:43:17 +04:00
Pavel V. Talanov
10797db588
Create test for resolving with compiled kotlin dependency
...
Test for resolving fake overrides from binaries
2013-09-30 20:54:35 +04:00
Alexey Sedunov
41ea7da1e3
Implement call hierarchy
2013-09-27 19:20:44 +04:00
Andrey Breslav
4b991f7254
Test that built-in binaries are up to date
2013-09-26 09:04:59 -07:00
Andrey Breslav
c94f97bf57
Properly disposing the environment in GenerateJavaToKotlinMethodMap
2013-09-24 13:07:46 -07:00
Alexander Udalov
da1325f5cc
Add a script to regenerate binary test data (jars)
2013-09-24 20:33:00 +04:00
Andrey Breslav
8952365ae3
Formatter test is generated now
2013-09-24 06:58:40 -07:00
Andrey Breslav
1f340e3a7a
Don't compile and run generators in build.xml
2013-09-24 06:45:26 -07:00
Andrey Breslav
587189433b
Test that GenerateJavaToKotlinMethodMap has run correctly
2013-09-24 06:45:25 -07:00
Andrey Breslav
651cc26e5e
Test that injectors are properly generated
2013-09-24 06:45:25 -07:00
Andrey Breslav
09da73da1b
Log what test classes were regenerated
2013-09-24 06:45:25 -07:00
Andrey Breslav
ade544a8b7
Test generator moved to the 'generators' module
2013-09-24 06:45:25 -07:00
Natalia.Ukhorskaya
5021bf3cd7
Fix line separators
2013-09-20 16:04:09 +04:00
Alexander Udalov
5119afae52
Extract 'descriptors' module
2013-09-18 18:45:34 +04:00
Alexander Udalov
8e59e789dc
Extract util.runtime module out of util
...
Cleanup module dependencies: a lot of modules depended on 'frontend.java' just
to use something from 'util' module, exported by 'frontend.java', whereas they
really need nothing from 'frontend.java'. Also 'frontend.java' just exported
'util', not using anything from it.
Create a new 'util.runtime' module, which will be available at runtime. Make
'util' export 'util.runtime' and make all modules who needed these utils depend
on 'util' directly instead of 'frontend.java'
2013-09-18 17:21:11 +04:00
Alexander Udalov
15efeaba22
Use 'generators' module and its dependencies for 'All Tests'
2013-09-18 17:21:11 +04:00
Alexander Udalov
c029cbdf62
Do not escape AS_SAFE,NOT_IN,NOT_IS in DescriptorRenderer
2013-09-18 17:20:45 +04:00
Alexander Udalov
3da06ee110
Generate keyword strings for DescriptorRenderer
...
This is done in order to kill dependency of DescriptorRendererImpl on JetTokens
2013-09-18 17:01:41 +04:00
Alexander Udalov
df875b892f
Move generators sources to generators/src/
2013-09-18 17:01:41 +04:00
Alexander Udalov
8400d2b8cf
Refactor OverridingUtil.resolveUnknownVisibilities
...
Get rid of dependency on BindingTrace, move the corresponding error reporting
logic to OverrideResolver
2013-09-18 16:40:35 +04:00
Evgeny Gerashchenko
e338cda06d
Changed extension in parsing test data (jet -> kt)
2013-09-17 18:10:00 +04:00
Evgeny Gerashchenko
5ed75cffd5
Made parsing test generated.
2013-09-17 18:10:00 +04:00
Nikolay Krasko
29448c149c
Fix patterns - escape for the dots
2013-09-16 17:23:28 +04:00
Nikolay Krasko
b0acf758bc
Give more priority to declarations from the same file
2013-09-16 17:23:26 +04:00
Nikolay Krasko
39bf53155b
Generate weigher tests from Kotlin base
2013-09-16 17:23:25 +04:00
Andrey Breslav
8bf1ab85ab
Intention to replace a shorthand type with a reconstructed one
2013-09-13 22:41:06 +02:00
Natalia.Ukhorskaya
2b2302b18c
Add Maven Configurator
2013-09-13 18:04:29 +04:00
Natalia.Ukhorskaya
641bd1d910
Add Gradle (simple and for android) Project Configurator
2013-09-13 18:04:13 +04:00
Alexander Udalov
b69970d621
Rename CompileKotlinAgainstCustomJava test
...
It's not against Java per se, but rather any binaries
2013-09-06 21:28:49 +04:00
Andrey Breslav
9f4beece64
PlatformToKotlinClassMap injected into expression analyzers
2013-09-05 14:17:32 +04:00
Alexander Udalov
2b9225fdd4
Extract descriptor.loader.java module from frontend.java
...
Will be used in runtime to load reflected classes
2013-09-04 21:55:11 +04:00
Alexander Udalov
2b1a2c9988
Extract ExternalAnnotationResolver
2013-09-04 21:55:06 +04:00
Alexander Udalov
5eb82ae45b
Extract signature checking logic into an interface
...
Combine JavaMethodSignatureUtil and RawTypesCheck utility classes into a new
PsiBasedMethodSignatureChecker
2013-09-04 21:55:05 +04:00
Alexander Udalov
e93c573898
Create JavaSignatureFormatter, a wrapper over PsiFormatUtil
2013-09-04 21:55:05 +04:00
Alexander Udalov
af2c03ad70
Get rid of trace in JavaClassResolver and JavaNamespaceResolver
...
Create TraceBasedErrorReporter which reports ABI errors to the trace
2013-09-04 21:55:05 +04:00
Alexander Udalov
d34a6d85e7
Remove BindingTrace from Java function and property resolvers
...
Extract FakeOverrideVisibilityResolver which invokes OverrideResolver with the
trace
2013-09-04 21:55:04 +04:00
Alexander Udalov
480ef9ea66
Create JavaResolverCache
...
An abstraction over BindingTrace which will be used in JDR
2013-09-04 21:55:04 +04:00
Alexander Udalov
760e4002cf
Extract interface out of ExternalSignatureResolver
2013-09-04 21:55:04 +04:00
Alexander Udalov
de54f7d732
JavaClass, JavaPackage, JavaAnnotation
...
Create dumb wrappers over PSI elements, will be used for loading descriptors
from JVM reflection later (instead of PSI)
2013-09-04 21:55:00 +04:00
Andrey Breslav
9fa8ee10dc
Tests for navigation to property delegates' accessors
2013-08-28 13:49:52 +04:00
Andrey Breslav
c02f0a7d04
Intention to convert a member to an extension
2013-08-27 15:03:27 +04:00
Pavel V. Talanov
e4988f9dba
Use VirtualFileFinder in JavaClassResolver
...
HACK: determine whether fqname is a name for class contained in class or namespace based on virtual file name
This commit introduces code duplication which is hard to avoid without major refactoring
2013-08-26 17:58:48 +04:00
Alexander Udalov
c5e37cc3de
Move classes around in frontend.java
...
Move Java<->Kotlin class mapping to 'mapping' package, move method mapping to
'kotlinSignature' (and make it package local), delete unused methods
2013-08-26 16:00:08 +04:00
Alexander Udalov
2d7a5ebf36
Simplify injectors for frontend.java
...
- delete InjectorForJavaSemanticServices, replace its usages with
InjectorForJavaDescriptorResolver
- delete unneeded fields and parameters of InjectorForJavaDescriptorResolver
2013-08-26 15:59:57 +04:00
Alexander Udalov
eff99e563b
Write ProtoBuf.Package to .kotlin_package
...
Instead of a delimited list of callables. Also some minor refactorings
2013-08-23 17:39:26 +04:00
Alexander Udalov
9ae9870d44
Don't test annotations in DescriptorSerializationTest
2013-08-23 17:39:25 +04:00