Alexander Udalov
38a42bdb79
Do not wrap built-in function in JetLightClass (EA-38770)
...
Built-in top-level functions are located in jet.namespace class.
JetStandardClasses.isStandardClass() now checks that a given fqName starts with
"jet.", instead of searching it in the standard scope, to prevent this kind of
errors in the future
2012-09-27 16:30:59 +04:00
Svetlana Isakova
a27abfe355
tests fixed
2012-09-24 15:24:21 +04:00
Svetlana Isakova
85f3dbf4fc
added annotations for Collections and Arrays
2012-09-24 14:18:04 +04:00
Andrey Breslav
2abe2e581d
AbstractStringBuilder, StringBuilder and java.io.File annotated with nullable/notnull
2012-09-20 18:12:57 +04:00
Nikolay Krasko
8c50b0ce9d
KT-2424 Invoking completion adds unnecessary FQ name
...
#KT-2424 Obsolete
2012-09-20 16:50:16 +04:00
Nikolay Krasko
c7af6de16b
KT-1187 Wrong unnecessary completion
...
#KT-1187 Fixed
2012-09-20 16:50:12 +04:00
Nikolay Krasko
b301bbe1f9
Don't activate top level completion in user types after dot
2012-09-20 16:50:08 +04:00
Nikolay Krasko
f1059271b2
Udate test framework for confidence tests. Move type directive to test files
2012-09-20 16:49:36 +04:00
Nikolay Krasko
1ba4e5aee0
KT-2128 Code completion after number with dot - don't complete on '.' only in ".."
...
#KT-2128 Fixed
2012-09-20 14:53:08 +04:00
Andrey Breslav
bd0eab5202
Tuple migration quick fix now appears only on tupels shorter than 4
...
Longer tuples exhibit another error message.
Messages adjusted for compiler and IDE
2012-09-19 16:05:32 +04:00
Andrey Breslav
3aaed57a66
Quick fix to replace sure() calls with !!
2012-09-18 20:27:09 +04:00
Andrey Breslav
36b5573f4d
A quick fix to replace tuples (expressions and types) by Unit, Pair and Triple
...
Changes are made to all files in the project
This quick-fix is to be removed in the next milestone
#KT-2358 In Progress
2012-09-18 20:27:09 +04:00
Andrey Breslav
5eaa5b396b
Removing usages of tuples from test data
...
(KT-2358 Drop tuples)
#KT-2358 In progress
2012-09-18 20:27:09 +04:00
Nikolay Krasko
5ff1c4007d
Don't complete keywords for upper case prefix
2012-09-18 19:54:20 +04:00
Nikolay Krasko
ab1095a84e
Formatter: remove unnecessary spaces in value and type parameter lists
2012-09-18 19:26:53 +04:00
Nikolay Krasko
e29182b2fb
Don't indent { for functions on new lines
2012-09-18 19:26:52 +04:00
Nikolay Krasko
72fb2c0d02
KT-2242 Fix {<space>(a: Int) -> a } case
...
#KT-2242 Fixed
2012-09-18 19:26:51 +04:00
Evgeny Gerashchenko
8aa13a301c
Added standard library reference resolver test cases with equals and toString functions.
2012-09-17 18:01:40 +04:00
Evgeny Gerashchenko
07259e7683
Added completion handler test with built-in extension function.
2012-09-17 18:01:15 +04:00
Evgeny Gerashchenko
c6a040a380
Removed sure() function from built-ins.
2012-09-17 18:00:22 +04:00
Evgeny Gerashchenko
ee539e7da5
Replaced sure() invocation with '!!' operator in suggester test.
2012-09-17 18:00:21 +04:00
Evgeny Gerashchenko
d825fb25a0
KT-1651 Navigation to enum constants doesn't work for libraries with and without source code
...
#KT-1651 fixed
2012-09-17 16:27:14 +04:00
Nikolay Krasko
8d551c8947
Don't create OutOfBlock modification inside mulitdeclarations
2012-09-14 21:19:59 +04:00
Evgeny Gerashchenko
2f89352d80
Added AUTOCAST mark when expression is used as for-loop iterable.
2012-09-14 16:12:16 +04:00
Nikolay Krasko
7ad0fd56f3
EA-39175 Completion fails if MultiDeclaration is present on top level in file
2012-09-13 21:06:18 +04:00
Nikolay Krasko
a95ba27b7d
KT-2758 Errors in lazy resolve: Unknown TYPEDEF
...
Unknown declaration: TYPEDEF: Unknown declaration: TYPEDEF
#KT-2758 Fixed
EA-38287 Fixed
2012-09-13 21:06:18 +04:00
Nikolay Krasko
40f559bcdc
Additional test for wrapping functions
2012-09-13 21:06:17 +04:00
Evgeny Gerashchenko
08fc54d969
Fixed test data after IDEA update.
2012-09-13 19:07:58 +04:00
Svetlana Isakova
0d1790a4f4
alternative signature applies for names
...
mapped in standard library (and differs from auto transformed Java signature)
e.g.Collections.copy(MutableList, List)
2012-09-13 17:28:31 +04:00
Natalia.Ukhorskaya
60bdae9d75
Prohibit body for annotation class
...
#KT-1886 Fixed
2012-09-13 16:27:48 +04:00
Alexander Udalov
954003872d
Do not generate erroneous classes in SIGNATURES mode
...
Add an assertion that this never happens in other modes.
(fixes EA-37034)
2012-09-13 16:20:25 +04:00
Alexander Udalov
ccfa5f8c2c
Do not lookup expressions in closures when building signatures
...
#KT-2764 Fixed
(EA-38857)
2012-09-12 21:16:47 +04:00
Nikolay Krasko
1121d9b316
EA-38789 Fix "Name is null for OBJECT_DECLARATION object"
2012-09-12 19:58:45 +04:00
Nikolay Krasko
b6e2381861
EA-36473 Wrap method for JetLightClass with invalid fq name
2012-09-11 21:29:42 +04:00
Alexander Udalov
bb92655ecd
Prohibit creation of JetLightClass on built-ins
...
If we allow JetLightClass to be created on built-in types, a normal codegen
would be launched, with a mapping from Kotlin to Java types enabled, every time
IDE requests built-in classes. Codegen would then try to make something
meaningless, e.g. create a class for a primitive type (since our jet.Boolean is
mapped to primitive boolean). This would result in different exceptions when
navigating to built-in library from IDE.
Add a helpful error message to ClassFileFactory if we ever again produce
classes for primitive types.
2012-09-11 17:08:33 +04:00
Nikolay Krasko
df76d2d3a8
In and Out keyword completion for generic parameters
2012-09-07 21:02:01 +04:00
Nikolay Krasko
e043a6c699
Fix error keyword completion in modifier lists in parameters
2012-09-07 21:02:00 +04:00
Nikolay Krasko
8fd52a9095
Two tests for resolved reference
2012-09-07 21:01:59 +04:00
Nikolay Krasko
4376c7a87c
Use separate test methods instead of generated suit
2012-09-07 21:01:57 +04:00
Andrey Breslav
fc90c775e9
KT-2730 AssertionError at org.jetbrains.jet.codegen.AnnotationCodegen.genAnnotations(AnnotationCodegen.java:86)
...
#KT-2730 Fixed
2012-09-06 15:31:59 +04:00
Nikolay Krasko
c587a1375f
KT-112 Cannot rename a class on a constructor call site
...
#KT-112 Obsolete
2012-09-06 00:00:53 +04:00
Svetlana Isakova
ed68ac2244
test fix
2012-09-05 18:55:18 +04:00
Svetlana Isakova
b4e3c36c5e
resolve constructor reference in standard library
2012-09-05 18:55:18 +04:00
Svetlana Isakova
0b4b515ad7
navigate to several elements if there are many
...
(not only in ambiguity case)
2012-09-05 18:55:17 +04:00
Svetlana Isakova
7d37df5f38
tests changes after collections mapping
2012-09-05 18:55:16 +04:00
Svetlana Isakova
31831f2433
added 'class has Kotlin analog' error
...
to existing diagnostic tests
2012-09-05 18:55:16 +04:00
Nikolay Krasko
0e3dd77098
KT-2170 "private" keyword completion does not work before "val"
...
#KT-2170 Fixed
2012-09-05 17:08:02 +04:00
Andrey Breslav
a267f65fa1
Front-end test data fixed to have no complex patterns
...
#KT-2359 In Progress
2012-09-05 14:18:40 +04:00
Natalia.Ukhorskaya
b113059c2c
KT-2709 Optimizing import removes reference to class when in code val from its class object is used
...
#KT-2709 Fixed
2012-09-05 11:39:42 +04:00
Natalia.Ukhorskaya
cc215d4212
Optimizing imports doesn't remove references to java static fields when they are referred via short name in code
2012-09-05 11:29:35 +04:00