Commit Graph

3035 Commits

Author SHA1 Message Date
Evgeny Gerashchenko ecdcfdb45a Made parser aware of templates in parameters, return type positions for all functions; of name, receiver positions for extension functions. 2012-02-08 15:58:06 +04:00
Evgeny Gerashchenko 8d67d794b3 Changed JetFoldingBuilder to make it able to fold templates in any position. 2012-02-08 15:58:06 +04:00
Evgeny Gerashchenko 7880ff4b61 Made parser aware of templates in function name position. 2012-02-08 15:58:06 +04:00
Evgeny Gerashchenko 89055ebf39 Introduced constants with if and if-else templates 2012-02-08 15:58:06 +04:00
Evgeny Gerashchenko bc6a785ef0 Added placeholders in code for templates in other contexts. 2012-02-08 15:58:06 +04:00
Evgeny Gerashchenko ceccdeb6ef Improved "if" template, added "if-else" template, removed "if" keyword from completion. 2012-02-08 15:58:06 +04:00
Evgeny Gerashchenko 6ad8601773 Added if block template and generic template insertion handler 2012-02-08 15:58:06 +04:00
Evgeny Gerashchenko 762e9af197 Added folding building for templates. 2012-02-08 15:58:06 +04:00
Evgeny Gerashchenko 29c465641b Added parsing of <#<template>#> blocks. 2012-02-08 15:58:06 +04:00
Evgeny Gerashchenko 3660b4668e Commited minor changes in example-vfs.iml. 2012-02-08 15:58:06 +04:00
James Strachan 05c7a52ed2 Merge branch 'master' of git+ssh://git.labs.intellij.net/jet 2012-02-08 11:50:27 +00:00
James Strachan 659fceecbe removed unnecessary getOrElse(value) method as we can use ?: (which is neater!) though shame it doesn't work for lazy values, passing a function body which is invoked if the value is not null 2012-02-08 11:45:59 +00:00
Nikolay Krasko 01e71cbd59 Don't add import if there's general import with .* exist 2012-02-08 15:27:41 +04:00
Nikolay Krasko e8ffaa28f3 Don't add import after insertion function with fqn 2012-02-08 12:53:56 +04:00
James Strachan 04220935e0 enabled the test for T?.getOrElse and fixed up minor glitch in assertEquals 2012-02-08 07:57:18 +00:00
James Strachan ef269a9f81 added a simple builder API to the std.dom API 2012-02-08 07:57:18 +00:00
James Strachan a3cd65f10e added a little spike of a little std.dom API to make the W3C DOM API a little kooler 2012-02-08 07:57:18 +00:00
James Strachan 5057bf732e added a helper method for easily converting from a nullable type to a non nullable type with a non-lazy value, or lazy factory function 2012-02-08 07:57:18 +00:00
Stepan Koltsov 5f8a71eb21 validate type parameter indices in FunctionDescriptorImpl.initialize
TODO validate value parameter indices
2012-02-08 03:25:46 +04:00
Stepan Koltsov 0c821f947d split diagnostics/Override.jet test 2012-02-08 00:55:43 +04:00
Stepan Koltsov 11906ffd21 fix PropertyDescriptor.copy
it fails in certain situation, breaks test added in following commit
2012-02-08 00:55:37 +04:00
Stepan Koltsov ab455b92c3 assert class supertype is class 2012-02-07 23:21:58 +04:00
Alex Tkachman bb3ca16203 Speeding up codegen tests 2012-02-07 19:10:47 +02:00
Maxim Shafirov 8ef778c18e more mem for tests + dump if outofmem happens 2012-02-07 21:04:05 +04:00
Maxim Shafirov 8e6e3f683a In-the-process compiler 2012-02-07 20:51:41 +04:00
Nikolay Krasko d1409116f3 - KT-1147 Can't see local variable in completion
- Disable class level keywords from method parameters list
- Reorganize completion tests to separate methods
2012-02-07 20:06:29 +04:00
Alex Tkachman adfce7e22d KT-274 Enumeration.iterator() 2012-02-07 16:41:11 +02:00
Alefas 1d88960a19 Name suggester + tests.
Fixed commented introduce variable tests.
2012-02-07 18:22:38 +04:00
Nikolay Krasko ddbd86cdf5 KT-1051 Java interoperability completion - enum tests and test for auto import directive auto insert 2012-02-07 14:05:08 +04:00
Nikolay Krasko aa9b2db300 KT-1051 Java interoperability completion - more tests 2012-02-07 13:32:46 +04:00
Nikolay Krasko d3c37f65e4 KT-1051 Java interoperability completion - invalidating java packages strategy 2012-02-07 13:29:21 +04:00
Andrey Breslav a82b3dacb8 handling abnormal termination of the compiler 2012-02-07 13:25:32 +04:00
Andrey Breslav 7683854908 handling abnormal termination of the compiler 2012-02-07 12:52:55 +04:00
Alefas b0046348aa Parameter info popup after completion insertion.
Do not add '(' if it's already exist in completion (+Tests).
2012-02-07 12:43:27 +04:00
Maxim Shafirov f91fa19ea1 memoize psiClass() 2012-02-06 22:09:28 +04:00
Stepan Koltsov f4ffbd3360 properly rewrite *Descriptor owner in FunctionDescriptorImpl.copy() 2012-02-06 20:51:25 +04:00
Stepan Koltsov 7364633be3 remove overloading in FunctionDescriptorImpl constructor 2012-02-06 20:44:52 +04:00
Stepan Koltsov bbf2f60aef Revert "remove FunctionDescriptorImpl constructor overloading"
This reverts commit 964b66ecb1.
2012-02-06 20:39:04 +04:00
Stepan Koltsov b2944a1bd1 Revert "properly rewrite *Descriptor owner in FunctionDescriptorImpl.copy()"
This reverts commit d6907848c5.
2012-02-06 20:38:35 +04:00
Nikolay Krasko ce6850ae4d KT-1051 Java interoperability completion - fix java subpackages 2012-02-06 20:25:02 +04:00
Stepan Koltsov d6907848c5 properly rewrite *Descriptor owner in FunctionDescriptorImpl.copy() 2012-02-06 19:07:14 +04:00
Alex Tkachman abc9a7ca46 JetCompieler reports stderr 2012-02-06 16:57:18 +02:00
Alex Tkachman 9d69c62a6c Netty example 2012-02-06 16:32:22 +02:00
Stepan Koltsov 964b66ecb1 remove FunctionDescriptorImpl constructor overloading 2012-02-06 18:20:03 +04:00
Alex Tkachman 09a8834220 inline variable 2012-02-06 16:16:13 +02:00
Nikolay Krasko e6197f0160 KT-801 Implement Naviagate -> Class... for kotlin 2012-02-06 16:36:36 +04:00
Maxim Shafirov 9e7581c856 Give up on cleaning loader properly 2012-02-06 16:19:41 +04:00
Nikolay Krasko f03fb92f53 Auto select completion proposal 2012-02-06 15:48:28 +04:00
Nikolay Krasko afd8f380c9 Insert import on applying top level function completion 2012-02-06 15:47:34 +04:00
Maxim Shafirov 326c518dd9 remove debug mode, it's slow 2012-02-06 15:16:51 +04:00