Commit Graph

3072 Commits

Author SHA1 Message Date
Alefas 6fe52d15b4 Few fixes to Introduce Variable (no new features added)
Added few tests to Introduce Variable
More strict requirements for expressions to introduce it.
2012-02-08 17:07:38 +04:00
Evgeny Gerashchenko 7bbc121f72 Fixed parser test. 2012-02-08 16:13:25 +04:00
Evgeny Gerashchenko 4b87d02627 Filled completion menu for iter live template. 2012-02-08 15:58:08 +04:00
Evgeny Gerashchenko f64ecd7eb5 Renamed kotlinVariableOfType() macro to kotlinAnyVariable() 2012-02-08 15:58:08 +04:00
Evgeny Gerashchenko ca446030ea Added filtering variables in BaseJetVariableMacro 2012-02-08 15:58:08 +04:00
Evgeny Gerashchenko f0073d0289 Extracted BaseJetVariableMacro from JetVariableOfTypeMacro. 2012-02-08 15:58:08 +04:00
Evgeny Gerashchenko 8d50d17f92 Added auto-importing when methods are implemented or overriden. 2012-02-08 15:58:08 +04:00
Evgeny Gerashchenko a2602ce521 Added auto-importing when methods are implemented or overriden. 2012-02-08 15:58:08 +04:00
Evgeny Gerashchenko c089e2d80f Added 'object' synonym for 'anonymous' live template. 2012-02-08 15:58:08 +04:00
Evgeny Gerashchenko 1dd5f84217 Removed named object template. 2012-02-08 15:58:08 +04:00
Evgeny Gerashchenko 1b9a04aaf7 Setting caret between () only if non-primary constructor exists. 2012-02-08 15:58:08 +04:00
Evgeny Gerashchenko 36f42e7029 Added automatic implementing all abstract methods. 2012-02-08 15:58:08 +04:00
Evgeny Gerashchenko bc9f67b6e2 Made parser aware of object literals in statement position (they were parsed as object declarations) 2012-02-08 15:58:08 +04:00
Evgeny Gerashchenko 9e021c07a7 Adding () automatically if supertype is class. 2012-02-08 15:58:08 +04:00
Evgeny Gerashchenko 5a6c658204 Added completion in 'anonymous' live template. 2012-02-08 15:58:08 +04:00
Evgeny Gerashchenko ce0f38d783 Added 'anonymous' live template. 2012-02-08 15:58:08 +04:00
Evgeny Gerashchenko 936ecdb65a Replace 'enum' keyword in completion with enum class template. 2012-02-08 15:58:08 +04:00
Evgeny Gerashchenko 3eb195b428 Added 'exfun', 'exval' and 'exvar' live templates. 2012-02-08 15:58:07 +04:00
Evgeny Gerashchenko 159d396c4b Added 'closure' live template. 2012-02-08 15:58:07 +04:00
Evgeny Gerashchenko aae5bc3b70 Added expression live template context type. 2012-02-08 15:58:07 +04:00
Evgeny Gerashchenko 13f6201a40 Added 'interface' and 'singleton' live templates. 2012-02-08 15:58:07 +04:00
Evgeny Gerashchenko 55caf9d30a Added recovery in JetParsing.parseMemberDeclaration() 2012-02-08 15:58:07 +04:00
Evgeny Gerashchenko 358c55793d Added void, fun0 fun1 and fun2 live templates. 2012-02-08 15:58:07 +04:00
Evgeny Gerashchenko d81492a80f Added class context type for live templates. 2012-02-08 15:58:07 +04:00
Evgeny Gerashchenko 02ae0bf2a8 Added live templates to completion. 2012-02-08 15:58:07 +04:00
Evgeny Gerashchenko 661b3b036f Added templates for 'while' and 'do-while' loops. 2012-02-08 15:58:07 +04:00
Evgeny Gerashchenko 7010f3bd8e Added template for 'when' expression and entry. 2012-02-08 15:58:07 +04:00
Evgeny Gerashchenko ce48e39d40 Added template for 'for' loop. 2012-02-08 15:58:07 +04:00
Evgeny Gerashchenko 38bd4dbcf7 Fixed NPE in JetFoldingBuilder 2012-02-08 15:58:07 +04:00
Evgeny Gerashchenko 07f07c8da8 Added template for class object. 2012-02-08 15:58:07 +04:00
Evgeny Gerashchenko 679862778c Added templates for named object. 2012-02-08 15:58:07 +04:00
Evgeny Gerashchenko e4953f60fb Added templates for class and trait. 2012-02-08 15:58:07 +04:00
Evgeny Gerashchenko 8d79ea4a2f Added templates for val and var. Removed corresponding keywords from completion. 2012-02-08 15:58:07 +04:00
Evgeny Gerashchenko ec39d9caae Added oneline if-else template. 2012-02-08 15:58:06 +04:00
Evgeny Gerashchenko 884e6eb54e Added placeholders for if-else blocks and function body. 2012-02-08 15:58:06 +04:00
Evgeny Gerashchenko 4811fc9400 Added traversal over template parameters (temporarily using todo until corresponding patch is applied to IDEA) 2012-02-08 15:58:06 +04:00
Evgeny Gerashchenko 2716fe9771 Added fun template. 2012-02-08 15:58:06 +04:00
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