Commit Graph

3723 Commits

Author SHA1 Message Date
Nikolay Krasko 936144a193 KT-1235 Indent size in IDEA is always 4? 2012-02-13 14:39:45 +04:00
Nikolay Krasko f0d4742957 Remove temporary test 2012-02-13 14:39:31 +04:00
Nikolay Krasko a1ef17fade Enable test 2012-02-13 14:29:33 +04:00
Evgeny Gerashchenko c566204966 Fixed "Can't make indentation with pressing Tab"
#KT-1241 fixed
2012-02-13 14:22:17 +04:00
Alex Tkachman 845e873296 KT-1159 test for obsolete issue 2012-02-13 09:54:12 +02:00
Alex Tkachman ace34b01bc KT-1202 object construction fix 2012-02-13 08:34:10 +02:00
Pavel Talanov ec6b006bbb refactor qualifier generation logic 2012-02-12 18:55:20 +04:00
Pavel Talanov 9e3001215b support extension function safe calls and extension literal safe call 2012-02-12 18:37:50 +04:00
Pavel Talanov f98c24c6aa reorder the method of call translator 2012-02-12 16:52:45 +04:00
Pavel Talanov 4abf0db10c get rid of the rest of translate methods in CallTranslator 2012-02-12 16:48:01 +04:00
Pavel Talanov c505ecc846 refactoring CallTranslator:
introduce CallBuilder
remove CallTranslator.Builder
introduce CallExpressionTranslator
2012-02-12 16:34:39 +04:00
Alex Tkachman 84ed18c7e2 KT-1149 static type info field for unarameterized traits 2012-02-12 09:04:18 +02:00
Alex Tkachman be5e11f2a5 KT-1172 test for obsolete issue 2012-02-12 08:28:49 +02:00
Alex Tkachman 9f4ef7fb6a KT-1186 test added 2012-02-11 13:04:26 +02:00
Alex Tkachman a2b602a440 KT-694 - support for simple enums 2012-02-11 13:00:28 +02:00
Alex Tkachman d81ca43b6e KT-1047 - obsolete. test added 2012-02-11 11:48:50 +02:00
Alex Tkachman 8d9434548f KT-1199 - test and fix for erased case 2012-02-11 11:09:02 +02:00
Pavel Talanov 254ed6de14 implement CallType logic 2012-02-10 22:34:34 +04:00
Andrey Breslav a9e1eb3615 Add j2k to the plugin 2012-02-10 21:33:05 +04:00
Stepan Koltsov 4ec59edb9e rename NamedFunctionDescriptorErrorImpl -> ErrorNamedFunctionDescriptorImpl 2012-02-10 20:40:47 +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 41455a56c5 - KT-1227 Can't see basic types in class completion
- Remove duplicated test
2012-02-10 18:42:23 +04:00
Pavel Talanov 893d983861 work on safe acess
implement callType
better KotlinPropertyAccessTranslator
2012-02-10 17:12:21 +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
Pavel Talanov dce8a6de21 deleted jet library from out dir 2012-02-10 15:44:59 +04:00
Pavel Talanov 41db715424 corrected creatures example 2012-02-10 15:43:54 +04:00
Pavel Talanov 1bc6111f04 added comments and chose meaningful names for examples 2012-02-10 15:23:01 +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
Evgeny Gerashchenko b33c6ab9ea Fixed tests (removed reference to removed action) 2012-02-10 13:40:08 +04:00
Alex Tkachman a6fdd0fd05 actors example - stock server 2012-02-10 11:37:34 +02:00
Pavel Talanov 41f7c29bfa examples update 2012-02-10 12:54:27 +04:00
unknown 63e49000e4 Changes in config 2012-02-10 12:52:51 +04:00
unknown bd0304b08d Change with appet in k2js 2012-02-10 12:47:09 +04:00
Evgeny Gerashchenko 5265938826 Changed NextPrevParameterAction to JetTemplateParmeterTraversalPolicy (Tab/Shift+Tab are working now). 2012-02-10 12:38:46 +04:00
Evgeny Gerashchenko b6fe7fe85f Added compiler diagnostic for unresolved IDE templates. 2012-02-10 12:38:46 +04:00
Stepan Koltsov 9b6e051dc1 split SuperGenTest.enclosed 2012-02-09 23:40:51 +04:00
Alex Tkachman 8e6e8e938c def args in constructors 2012-02-09 20:36:09 +02:00
Stepan Koltsov 5c8fb3febf split FunctionGenTest.defaultArgs 2012-02-09 22:25:19 +04:00
Stepan Koltsov 6a8f2e14fb another case in JetDiagnosticsTest
simple unclassified case not covered by other tests
2012-02-09 22:25:11 +04:00
Evgeny Gerashchenko 47764add22 Changed completion for 'iter' live template, now check is the same as used in checking real for loops. 2012-02-09 21:56:28 +04:00
Evgeny Gerashchenko 447114f063 Added utility method to check if variable is iterable. 2012-02-09 21:56:28 +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
Nikolay Krasko 8ac3961a3d Fix imports from JavaDescriptorResolver 2012-02-09 20:36:49 +04:00
Maxim Shafirov 93bdc45d48 As kotlinc and IDEA share some classes one must ensure we only use kotlinc classes, while in compiler process. 2012-02-09 20:30:45 +04:00
Pavel Talanov 0eccfdcde0 examples update 2012-02-09 19:11:35 +04:00
Pavel Talanov 0555b732ed examples update 2012-02-09 19:10:09 +04:00
Maxim Shafirov 0bbe267a75 thread context classloader for the compiler to find its dependencies 2012-02-09 19:05:38 +04:00
Stepan Koltsov bb0cf4f92f JetDiagnosticsTest: diamond with generics 2012-02-09 19:04:17 +04:00
Pavel Talanov 2a515b2eb9 working on examples 2012-02-09 19:03:10 +04:00
Stepan Koltsov 7ad452109f split SuperGenTest.basicmethod 2012-02-09 18:39:10 +04:00