Andrey Breslav
72a62626df
Do not inject TopDownAnalysisContext into DeclarationResolver
2014-02-24 15:52:54 +04:00
Andrey Breslav
e3744cff7c
Do not inject TopDownAnalysisContext into ScriptBodyResolver
2014-02-24 15:52:54 +04:00
Andrey Breslav
5976a91998
Do not inject TopDownAnalysisContext into TopDownAnalyzer
2014-02-24 15:52:53 +04:00
Andrey Breslav
f32d8b1d06
Do not inject BodiesResolveContext into BodyResolver
2014-02-24 15:52:53 +04:00
Andrey Breslav
5b67cf67eb
Usages of expressionTypingServices from ExpressionTypingContext are replaced with injection
...
The basic principle behind this change is that no context object should store components.
Components should be injected instead, and contexts only carry parameters around.
Particular changes:
- resolveCallWithGivenName() and resolveBinaryCall() moved to CallResolver
- ForLoopConventionsChecker introduced to confine checking conventions for Iterator and Iterable
- ExpressionTypingComponents introduced to deliver necessary components to ExpressionTypingVisitor's
- Some static methods became non-static to get access to injected components
- ExpressionTypingUtils and ControlStructureTypingUtils became components (got state injected) to avoid passing parameters around
2014-02-24 15:52:52 +04:00
Andrey Breslav
7b89af320c
scopeForVisibility replaced with containingDeclaration which is enough
2014-02-24 15:52:52 +04:00
Andrey Breslav
9c3d13940e
Typo fixed in the method name
2014-02-24 15:52:52 +04:00
Andrey Breslav
db73481fac
Minor: @NotNull added
2014-02-24 15:52:51 +04:00
Alexander Udalov
4117d04742
Don't use FileUtil in BuiltInsSerializer
...
See the comment
2014-02-21 20:49:12 +04:00
Alexander Udalov
4a603f1268
Minor, specify types for clarity
2014-02-21 20:38:02 +04:00
Andrey Breslav
ff762a4467
Use JDK annotations downloaded from a KAnnotator build
2014-02-21 19:23:41 +04:00
Nikolay Krasko
f14ff9405d
Force resolve descriptor type
2014-02-20 16:31:24 +04:00
Nikolay Krasko
a2c567da93
Common injector for lazy resolve with java lazy resolve
2014-02-20 16:31:22 +04:00
Nikolay Krasko
2ef879ea3e
Search classes by qualified name only in sources to prevent recursion
2014-02-20 16:31:21 +04:00
Nikolay Krasko
064612f0f3
Add cache delegating to lazy resolve session for source classes search
2014-02-20 16:31:10 +04:00
Nikolay Krasko
0448736a4c
Refactoring: remove unused methods
2014-02-20 16:27:49 +04:00
Nikolay Krasko
592969bad1
Rewrite utils method for qualified names to Kotlin
2014-02-20 16:17:51 +04:00
Nikolay Krasko
ac4fe93774
Add ability to filter out some particular classes from generator
2014-02-20 16:17:38 +04:00
Nikolay Krasko
e13d568a34
Refactoring: Simplify subclass graph
2014-02-20 16:08:09 +04:00
Nikolay Krasko
e946f1abba
Refactoring: remove LightClassStubWithData, use generics for KotlinJavaFileStubProvider
2014-02-20 16:08:09 +04:00
Andrey Breslav
623b169d71
When building light classes don't resolve irrelevant declarations in the same package
2014-02-20 16:08:08 +04:00
Andrey Breslav
783258d91a
Forced resolution of all contents enhanced
2014-02-20 16:08:07 +04:00
Andrey Breslav
a2c66f7cc4
Using lazy resolve when building light classes
2014-02-20 16:08:06 +04:00
Nikolay Krasko
b1b83a0ecb
Store connection between files and lazy package fragment descriptor
...
LazyPackageDescriptor objects are going to be used as input for light class
generation. Java code generator expects to find connection between descriptors
and files in binding context.
2014-02-20 16:08:05 +04:00
Nikolay Krasko
8eb2a937e6
Remove external packages search from file base declaration provider
...
External package should be found because of proper module configuration
2014-02-20 16:08:05 +04:00
Nikolay Krasko
e9091c85a4
Compile java sources into library
2014-02-20 16:08:03 +04:00
Alexander Udalov
fb12c56d1a
Add a temporary hack for migration "jet" -> "kotlin"
2014-02-20 02:40:44 +04:00
Alexander Udalov
b597940048
Minor, rename method
2014-02-19 17:46:18 +04:00
Alexander Udalov
339a990482
Remove ClassLoaderIsolationUtil
...
Minimize usages of jet.* in Java code: this will help in migration of jet.* to
package kotlin. Since tests will work with fq names instead of Class<?>
instances from now on, ClassLoaderIsolationUtil is useless now (except for one
unrelated method, which was moved to CodegenTestUtil)
2014-02-19 17:46:18 +04:00
Alexander Udalov
eb7b757e38
Fix VerifyError on rangeTo on primitive types
2014-02-19 17:46:18 +04:00
Alexander Udalov
8c97d9ebb3
Fix rangeTo between Float and Long
...
Float.rangeTo(Long) and Long.rangeTo(Float) now both return FloatRange for
consistency with other binary operations between floats and longs which, in
turn, return float to be consistent with Java
2014-02-19 17:46:18 +04:00
Alexander Udalov
7b642c9e37
Minor, move method closer to its usage
2014-02-19 17:46:18 +04:00
Alexander Udalov
977b156a0d
Create fake overrides for deserialized enum class object
...
Now that Any has members, we need to make sure fake overrides are properly
generated in every class descriptor we create automatically or manually.
This fixes DescriptorSerializationTestGenerated
2014-02-19 17:46:17 +04:00
Alexander Udalov
304129f9c9
Check if the class is special by FQ name
...
This is needed because our built-ins can be loaded with two different
mechanisms (deserialization and lazy resolve) and, when that happens,
corresponding descriptors aren't equal to each other, so one of two resolved
descriptors for Any (or the same with Nothing) was never considered to be a
"special class" with no supertypes
2014-02-19 17:44:19 +04:00
Alexander Udalov
3e33473c1a
Don't check equals, hashCode, toString in LoadBuiltinsTest
...
Otherwise there'll be too many fake overrides when these methods will appear in
Any
2014-02-19 17:44:19 +04:00
Andrey Breslav
b0ec4f10e9
Migrate from MutableClassDescriptor to ClassDescriptorWithResolutionScopes
...
Cast to MutableClassDescriptor where needed. The code with casts will be removed shortly
2014-02-19 14:30:48 +04:00
Andrey Breslav
5478204e2d
PlatformToKotlinClassMap can be obtained from the module
2014-02-18 19:51:49 +04:00
Andrey Breslav
cbc132efba
Mutability of collections made explicit in BodiesResolveContext
2014-02-18 19:51:49 +04:00
Andrey Breslav
d9dceca0c3
getDeclaredCallableMembers() added to ClassDescriptorWithResolutionScopes
2014-02-18 19:51:49 +04:00
Andrey Breslav
ac94dc5411
Interface ClassDescriptorWithResolutionScopes extracted for both lazy and mutable classes
2014-02-18 19:51:49 +04:00
Nikolay Krasko
9a8a8364dd
KT-4344 "Overridden method parameters are not annotated" warnings from Java
...
#KT-4344 Fixed
2014-02-18 14:49:34 +04:00
Nikolay Krasko
f14f2c19a8
Fix goto class action in Idea 13.1
2014-02-18 14:39:19 +04:00
Natalia Ukhorskaya
9f3b73986a
Update to IDEA 13.1 (134.1007)
2014-02-17 10:45:48 +04:00
Pavel V. Talanov
4c57aa9f23
Generate Injectors: minor, remove redundant GenerateInjectors class
2014-02-14 16:47:23 +04:00
Pavel V. Talanov
f8a8bbe9b0
Generate Injectors: add ability to specify that a field is a context
...
Context field's properties can injected into other components
Use it in GenerateInjectors.kt
2014-02-14 16:47:22 +04:00
Pavel V. Talanov
6c77ea91c5
Generate Injectors: simplify and remove redundancy
2014-02-14 16:47:21 +04:00
Pavel V. Talanov
73dd8a051a
Remove useless InjectorForJvmCodegen
2014-02-14 16:47:18 +04:00
Pavel V. Talanov
b37c57cf2b
Minor: remove redundant implementations of ResolutionContext#self
2014-02-14 16:47:17 +04:00
Evgeny Gerashchenko
5a1f98041e
Simplified kotlinc tests.
2014-02-13 20:46:29 +04:00
Evgeny Gerashchenko
aeade9e68d
Regenerated default protobuf.
2014-02-13 20:46:28 +04:00