Alex Tkachman
a4e272d7c6
optimization of toString for primitive types and "$expr"
...
- intrinsic toString for promitive types added to stdlib
- utility method added to CodegenUtil
- optimization logic added to generation of interpolating string
2012-09-17 13:00:02 +03:00
Evgeny Gerashchenko
7a00dd1551
Excluded newly added codegen test from Android JVM test.
2012-09-17 12:48:33 +04:00
Alex Tkachman
655a13aef6
IntrinsicsTest regenerated
2012-09-17 09:45:37 +03:00
Alex Tkachman
3b96624c81
small optimizaton of toString for primitive types (no boxing needed)
2012-09-17 09:07:08 +03:00
Alex Tkachman
58af365eb2
toString() method for data classes and fake implementation for hashCode/equals
2012-09-16 15:56:48 +03:00
Alex Tkachman
e317764a88
correct access flags for package private (coming from java) #KT-2781 fixed
2012-09-16 10:08:36 +03:00
Alex Tkachman
99196c187b
unification of codegen for singletons between object declarations, classobjects and const closures
2012-09-15 22:54:38 +03:00
Alex Tkachman
f8983d8516
static final field for class object moved to class object class from containing class
2012-09-15 21:23:42 +03:00
Alex Tkachman
104f2a08d3
cleanup refactoring - classAsType & superClassAsmType introduced
2012-09-15 15:50:14 +03:00
Alex Tkachman
93def61813
getMethodAsmFlags extracted
2012-09-15 15:28:41 +03:00
Alex Tkachman
325ed0073d
cleanup
2012-09-15 14:13:52 +03:00
Alex Tkachman
f0e096aba6
genJetAnnotations method extracted
2012-09-15 13:44:56 +03:00
Alex Tkachman
b2ab0ff0c8
cleanup state.getBindingContext()/getTypeMapper() replaced by use of fields
2012-09-15 11:48:55 +03:00
Nikolay Krasko
0182876998
Extend logging for error descriptor compile
2012-09-14 21:19:59 +04:00
Nikolay Krasko
8d551c8947
Don't create OutOfBlock modification inside mulitdeclarations
2012-09-14 21:19:59 +04:00
James Strachan
fb5e2333ac
add more swing helper methods for creating menus
2012-09-14 16:34:41 +01:00
James Strachan
fdb755e2e7
update for KT-2765 so we can specify annotationPaths for kdoc too
2012-09-14 16:34:25 +01:00
James Strachan
3d66ebd0e1
added partial fix for KT-2765 so we can specify the paths to where annotations.xml files can be found
2012-09-14 15:04:09 +01:00
Natalia.Ukhorskaya
c5db89e534
Generated field for classObject is now final
...
EA-38323 Fixed - Illegal field modifiers in class
2012-09-14 16:41:13 +04:00
Evgeny Gerashchenko
812b9453d1
Extracted KotlinSignatureUtil.isAnnotationEditable method. Made it work in the case of internal internal annotation.
2012-09-14 16:12:17 +04:00
Evgeny Gerashchenko
0665ad409a
Hidden "Delete" action and renamed "Edit" to "View" when external annotation is read-only.
2012-09-14 16:12:17 +04:00
Evgeny Gerashchenko
be4c0194d9
Fixed balloon position for library with sources.
2012-09-14 16:12:17 +04:00
Evgeny Gerashchenko
c33b880a57
EA-39177 - CCE: ArrayIterator.generate
...
If local variable is auto-casted to array, it should be iterated as array.
2012-09-14 16:12:16 +04:00
Evgeny Gerashchenko
2f89352d80
Added AUTOCAST mark when expression is used as for-loop iterable.
2012-09-14 16:12:16 +04:00
Evgeny Gerashchenko
6ea3d8e300
Replaced Predicate<WritableSlice> with TraceEntryFilter, which accepts key and slice.
2012-09-14 16:12:16 +04:00
Evgeny Gerashchenko
144dddf8b0
Added force getting document to reload its content if it is compiled Kotlin class.
2012-09-14 16:12:16 +04:00
James Strachan
9c3d1071cd
added more DRY compareBy function and helper class
2012-09-14 12:44:09 +01:00
James Strachan
51122a288d
tried more concise comparison code
2012-09-14 12:05:06 +01:00
James Strachan
1e9b1bdea6
Merge branch 'master' of github.com:JetBrains/kotlin
2012-09-14 11:27:52 +01:00
James Strachan
5647701c24
added a little sample test case of data classes
2012-09-14 11:19:13 +01:00
James Strachan
81d83cd4f0
added component1() / component2() methods to Map.Entry along with a test case so that maps can be iterated over via: for ((k, v) in map)
2012-09-14 11:18:35 +01:00
Natalia.Ukhorskaya
645b784b40
EA-38625 Fixed - Part 2 - UOE: NamespaceType.throwException
2012-09-14 14:11:45 +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
Natalia.Ukhorskaya
6516786979
EA-38625 Fixed - UOE: NamespaceType.throwException
2012-09-13 20:04:10 +04:00
Evgeny Gerashchenko
6b81ba1aef
Using real annotation owner when creating popup menu action group to make it work for library without sources.
2012-09-13 19:41:46 +04:00
Evgeny Gerashchenko
9e4ebe6982
Replaced assert to if-check to avoid when dramatically changing root.
2012-09-13 19:41:46 +04:00
Evgeny Gerashchenko
ea208965d5
Fixed focus requesting in signature balloon
2012-09-13 19:41:46 +04:00
Evgeny Gerashchenko
502aa1141f
Moved invokeEditSignature from EditSignatureBalloon to EditSignatureAction, since it's more natural now.
2012-09-13 19:41:45 +04:00
Evgeny Gerashchenko
331456bab4
Removed "Delete" button from edit signature balloon.
2012-09-13 19:41:45 +04:00
Evgeny Gerashchenko
2a8687b4a5
Added "Delete" context menu action.
2012-09-13 19:41:45 +04:00
Evgeny Gerashchenko
11bba8dd77
Fixed line y-coordinate calculation for popup menu action. Popup menu invocation doesn't move caret, so we can't rely on caret position.
2012-09-13 19:41:45 +04:00
Evgeny Gerashchenko
fe126b2d99
Added context menu to Kotlin signature icon with "Edit" action.
2012-09-13 19:41:45 +04:00
Evgeny Gerashchenko
091e1f9601
Using UIUtil instead of manual checking for action click.
2012-09-13 19:41:45 +04:00
Evgeny Gerashchenko
c368cbe53e
Subclassed EditSignatureBalloon from Disposable to pass it to addDocumentListener().
2012-09-13 19:41:45 +04:00
Evgeny Gerashchenko
c6b723f0ca
Set save button enabled iff alt-signature doesn't have syntax errors.
2012-09-13 19:41:45 +04:00
Evgeny Gerashchenko
528fb0ce4f
Got rid of getPreferredSize() hack in EdiSignatureBalloon.
2012-09-13 19:41:45 +04:00
Evgeny Gerashchenko
df2a6f0c88
Extracted inner class from createPanel() method.
2012-09-13 19:41:45 +04:00
Evgeny Gerashchenko
ecf68127df
Minor refactoring. Replaced some ifs with asserts, added @NotNull/@Nullable annotations.
2012-09-13 19:41:44 +04:00