Andrey Breslav
f4fbbcc3fa
Nullability warnings cleaned up with assertions
2012-10-19 11:31:48 +04:00
Andrey Breslav
5dbfe3ca3c
Pointless catch removed
2012-10-19 11:31:48 +04:00
Andrey Breslav
4a86255823
Mutable field made volatile:
...
this is a temporary measure to prevent some artifacts of concurrent access
2012-10-19 11:31:48 +04:00
Andrey Breslav
f104567cde
Unused fields removed
2012-10-19 11:31:41 +04:00
Andrey Breslav
7719df1002
Properly detect Kotlin built-ins:
...
Built-in classes like jet.Int and jet.Iterable are loaded from source
files by KotlinBuiltIns class. It makes no sense to create JetLightClass
instances for such classes, moreover, it causes runtime failures.
Now we check the location a file was loaded from before creating a light
class, and skip if it is a built-in.
We also assert this in teh actual generation of light class bodies, and
print out OS information if something fails, because our detection strategy
may depend on OS-specific behavior.
2012-10-18 19:57:18 +04:00
Andrey Breslav
a7b6b34e29
Properly determine what classes to show in Kotlin completion:
...
Classes like Int and jet.Iterable should are not visible from Java
since they are erased at runtime. We call such classes non-physical,
they have to be added to completion manually.`
2012-10-18 19:57:18 +04:00
Andrey Breslav
6f4902bfbe
Assertion message improved
2012-10-18 19:57:18 +04:00
Natalia.Ukhorskaya
62d8153ada
Map java.land.Deprecated to jet.deprecated
...
Change testData for deprecated annotation
#KT-2947 Fixed
2012-10-18 19:14:04 +04:00
Natalia.Ukhorskaya
f9c1c041d7
Add direction to JavaToKotlinClassMap and KotlinToJavaTypesMap
2012-10-18 19:08:52 +04:00
Natalia.Ukhorskaya
5d2edc53b4
Minor refactoring at DeprecatedAnnotationVisitor
2012-10-18 19:06:18 +04:00
Natalia.Ukhorskaya
29ca8faa4e
Replace CodegenUtils.isDeprecated to KotlinBuiltIns.isDeprecated
2012-10-18 19:03:34 +04:00
Natalia.Ukhorskaya
1c6b7ed1ae
Add jet.deprecated to library
2012-10-18 18:59:44 +04:00
Nikolay Krasko
11da503c62
KT-2962 auto completion support for extension functions
...
#KT-2962 Fixed
2012-10-18 14:52:37 +04:00
Alexander Udalov
ce2b915645
Generate line numbers for static delegates
...
Fixes debugger's "step into" for multi-file package
2012-10-17 17:57:54 +04:00
Alexander Udalov
4c710346af
Refactor LineNumberTest
...
Extract methods, annotate with NotNull, inline base code into test class,
other minor stuff
2012-10-17 17:57:53 +04:00
Pavel V. Talanov
92ffd8ab30
Convert line separators when loading files with builtins
2012-10-17 17:54:38 +04:00
Andrey Breslav
e4c89f800f
Compilation fixed
2012-10-17 17:52:02 +04:00
Andrey Breslav
e52277401d
Unused method removed
2012-10-17 17:48:48 +04:00
Andrey Breslav
10cf303133
BuiltIns initialization in J2K fixed
2012-10-17 17:40:06 +04:00
Andrey Breslav
2a112a41b3
Comments removed (what they say is no longer true)
2012-10-17 17:21:00 +04:00
Andrey Breslav
9125d3ed7a
jet.src is gone
2012-10-17 14:39:52 +04:00
Andrey Breslav
1f34f6ffae
Generator output land in the right place now
2012-10-17 14:39:42 +04:00
Andrey Breslav
b0a651bb20
A reference to jet.src removed
2012-10-17 14:39:07 +04:00
Andrey Breslav
9387c974bd
Resolving references to builtins: first loading Unit.jet, and then the rest of the library
...
Test data fixed to get rid of jet.src directory
2012-10-17 14:38:22 +04:00
Andrey Breslav
c3881747af
Component initialization order fixed
2012-10-17 13:48:08 +04:00
Andrey Breslav
ee5b50cb1b
Incorrect comparison to default bound fixed
2012-10-17 13:48:07 +04:00
Andrey Breslav
3121f1ad5c
Incorrect comparison fixed
2012-10-17 13:48:07 +04:00
Andrey Breslav
937c4e8baf
BuiltinsScopeExtensionMode not needed any more
...
(see the changes in DefaultModuleConfiguration.java)
2012-10-17 13:48:07 +04:00
Andrey Breslav
69f44dec62
JetStandardClasses and JetStandardLibrary deleted
2012-10-17 13:48:06 +04:00
Andrey Breslav
e81f38b6a8
JetStandardLibrary -> KotlinBuiltIns
2012-10-17 13:48:05 +04:00
Andrey Breslav
c719ae427a
JetStandardClasses -> KotlinBuiltIns
2012-10-17 13:48:05 +04:00
Andrey Breslav
363faaf6d5
KotlinBuiltins: a replacement for JetStandardLibrary and JetStandardClasses
2012-10-17 13:48:04 +04:00
Andrey Breslav
3f70a603a7
Forced resolve supported for lazy ResolveSession
2012-10-17 13:48:03 +04:00
Svetlana Isakova
e7cbff14ef
mark last parenthesis instead of value argument list
2012-10-16 20:14:52 +04:00
Svetlana Isakova
0d4d576fed
fixed exception in renderer for type inference error
2012-10-16 17:28:24 +04:00
Svetlana Isakova
73020fbebf
added class ExtendedInferenceErrorData
...
(to avoid @Nullable fields)
2012-10-16 16:25:08 +04:00
Svetlana Isakova
18b9d69577
added comment for 'INVISIBLE_REFERENCE' error
2012-10-16 16:00:22 +04:00
Svetlana Isakova
b0ae57902b
changed error messages for
...
INVISIBLE_REFERENCE, INVISIBLE_MEMBER
2012-10-16 16:00:22 +04:00
Svetlana Isakova
5da98b2bf0
KT-2330 Check visibility of getters and setters correspondingly
...
#KT-2330 fixed
2012-10-16 16:00:22 +04:00
Svetlana Isakova
7d768847a0
KT-2906 If function parameter/variable is invoked in closure using parenthesis syntax, in IDEA it is not highlighted as captured in closure
...
#KT-2906 fixed
2012-10-16 16:00:22 +04:00
Svetlana Isakova
3920dea889
minor
...
changed invocation replace(String, String) to replace(char, char)
2012-10-16 16:00:22 +04:00
Svetlana Isakova
b78ed3a684
made ListIterator covariant
2012-10-16 16:00:22 +04:00
Svetlana Isakova
9d89eb0e58
KT-2841 Can't infer a type for function literal parameter if the return type is error
...
#KT-2841 fixed
2012-10-16 16:00:22 +04:00
Nikolay Krasko
c82ef0522d
ImplementationTestUtils -> NavigationTestUtils rename
2012-10-16 15:38:35 +04:00
Nikolay Krasko
d4d8ddb5a1
ImplementationTestUtils -> NavigationTestUtils rename
2012-10-16 15:38:31 +04:00
Nikolay Krasko
04670d5d6e
Navigate to symbol for kotlin properties
2012-10-16 15:38:26 +04:00
Nikolay Krasko
bc85a8bf6b
Move common implementation to separate class
2012-10-16 15:38:17 +04:00
Natalia.Ukhorskaya
4e98ddda96
Add test for check access flags in class file (refactor WriteAccessFlagTest)
2012-10-16 14:44:25 +04:00
Natalia.Ukhorskaya
482fabfcce
Write ACC_DEPRECATED in byte codes.
...
#KT-2950 Fixed
2012-10-16 14:41:19 +04:00
Natalia.Ukhorskaya
d55a0fcacb
Move isDeprecated function to CodegenUtil
2012-10-16 14:41:18 +04:00