Alexander Udalov
eb11a7dc88
Move utilities out of runtime modules
...
DescriptorUtils & DescriptorSubstitutor contained a lot of utilities that were
used only in compiler & IDE. Move them closer to their usages
2014-06-26 22:02:59 +04:00
Alexander Udalov
e04f7c24fa
Alias 'kotlinc' for 'kotlinc-jvm'
2014-06-26 22:02:58 +04:00
Alexander Udalov
760fd73a0a
Don't launch REPL on "kotlinc-jvm -version"
...
#KT-3169 Fixed
2014-06-26 22:02:58 +04:00
Alexander Udalov
16ec4c3805
Minor, add path utility to codegen tests
2014-06-26 22:02:57 +04:00
Alexander Udalov
aea230d677
Introduce black box with Java codegen tests
...
In contrast to "black box against Java", it supports cyclic dependencies
between Java and Kotlin sources in one test case
2014-06-26 20:57:40 +04:00
Alexander Udalov
09863445bb
Rename tests: boxWithJava -> boxAgainstJava
2014-06-26 20:57:40 +04:00
Alexander Udalov
544cf4f28d
Rename JvmFunctionImplTypes -> JvmRuntimeTypes
...
Will be used for other JVM runtime types as well
2014-06-26 20:57:40 +04:00
Alexander Udalov
ac8eb0f5e8
Add PackageClassUtils.getPackageClassInternalName()
2014-06-26 20:57:39 +04:00
Alexander Udalov
a9b2fd964b
Support nullable types on left-hand side of ::
...
#KT-1183 In Progress
2014-06-26 20:57:39 +04:00
Alexander Udalov
42991e05a1
Delete unjustified assert
...
It's ok to generate <clinit> in the light classes mode, it's not ok to generate
the code in it (currently there seems to be no sane way to assert that)
2014-06-26 20:57:39 +04:00
Alexander Udalov
e31f2cfa23
Make protected static visibility reach members in the same package
2014-06-26 20:57:39 +04:00
Zalim Bashorov
0d0751c3f9
Minor: JvmCodegenUtil#isNullableType -> TypeUtils#isNullableType
2014-06-26 14:55:56 +04:00
Alexey Sedunov
e73ee4bbd6
Minor: Replace deprecated function call
2014-06-26 13:06:25 +04:00
Alexey Sedunov
fa73c5825e
Minor: Remove unused parameter
2014-06-26 13:06:24 +04:00
Alexey Sedunov
f226d99d36
Pseudocode: Add valued instructions and unbound values to AbstractPseudoValueTest
2014-06-26 13:06:23 +04:00
Alexey Sedunov
21be468e6c
Pseudocode: Merge all access instructions into single file
2014-06-26 13:06:22 +04:00
Alexander Udalov
71262bdf14
Output to the current directory by default ("-output .")
2014-06-25 22:32:16 +04:00
Alexander Udalov
ca219f9880
Beautify kotlinc -help output
2014-06-25 22:32:16 +04:00
Alexander Udalov
5e994778d1
Add test on "kotlinc-js -help" output
2014-06-25 22:32:15 +04:00
Alexander Udalov
ebec9e961c
Use hand-written usage information printer
...
Copy-pasted from com.sampullara.cli.Args
2014-06-25 22:32:15 +04:00
Alexander Udalov
2144088627
Don't output full compiler FQ name on -printArgs
2014-06-25 22:32:14 +04:00
Alexander Udalov
f51e172570
Fix kotlinc command line usage information
...
Fix spelling, case, minor grammar
2014-06-25 22:32:14 +04:00
Alexander Udalov
d963ff31ae
Minor, don't fire up Swing thread in CLI tests
2014-06-25 22:32:14 +04:00
Alexey Sedunov
c2aa824242
Implement light method equality based on the original declarations
...
#KT-4350 Fixed
2014-06-25 19:08:00 +04:00
Nikolay Krasko
150ac0ab91
Smart enter for 'do-while' expression
...
#KT-3600 In Progress
2014-06-25 14:22:58 +04:00
Nikolay Krasko
56efcd15aa
Smart enter for 'when'
...
#KT-3600 In Progress
2014-06-25 14:22:58 +04:00
Nikolay Krasko
8fc60f93d3
Smart enter for 'for' expression
...
#KT-3600 In Progress
2014-06-25 14:22:57 +04:00
Nikolay Krasko
fab74d8092
Smart enter for while statement
...
#KT-3600 In Progress
2014-06-25 14:22:56 +04:00
Nikolay Krasko
693080acfc
Smart enter for if statement
...
#KT-3600 In Progress
2014-06-25 14:22:56 +04:00
Nikolay Krasko
b574e3bd4f
Refactoring: move function trimIndent
2014-06-25 14:22:55 +04:00
Nikolay Krasko
d8490ce2a6
Don't parse entries if left brace absent in 'when'
2014-06-25 14:22:53 +04:00
Nikolay Krasko
f36f1796d6
Fix recovery for 'for' expression
2014-06-25 14:22:53 +04:00
Nikolay Krasko
2571797411
Don't parse condition if there's no ( for if
2014-06-25 14:22:52 +04:00
Andrey Breslav
e06154c204
Don't compile runtime for each test run by default: only do it for All Tests
2014-06-25 12:52:47 +04:00
Evgeny Gerashchenko
bf442a9700
Fixed loading integral constants from compiled classes.
2014-06-24 22:18:13 +04:00
zarechenskiy
0355b1bd53
Implement JavaTypeSubstitutor without PSI
2014-06-24 20:06:13 +04:00
Andrey Breslav
cd28b216c1
Rename. INSTANCE -> DEFAULT in JetTypeChecker
2014-06-24 19:13:01 +04:00
Svetlana Isakova
0673dc51d6
Test for KT-3162 More precise try-finally error marking
...
#KT-3162 Obsolete
2014-06-24 16:14:07 +04:00
Svetlana Isakova
6a4ccfd91d
Store copies of instruction only once
...
removed reference to 'original' instruction
2014-06-24 16:14:07 +04:00
Svetlana Isakova
ad83680666
Refactoring: changed methods order
2014-06-24 16:14:07 +04:00
Svetlana Isakova
e4a0651224
Added 'markedAsDead' flag to InstructionImpl
...
to be used in tests
2014-06-24 16:14:07 +04:00
Svetlana Isakova
8680ff4e88
Do not mark comment next to reachable child as unreachable
2014-06-24 16:14:06 +04:00
Pavel V. Talanov
eec6fbb205
Stubs: simplify JetStubElementType#shouldCreateStub()
2014-06-24 16:02:55 +04:00
Andrey Breslav
38d4ca5469
Do not generate @NotNull annotations on void- or primitive-returning methods
...
#KT-4834 Fixed
#KT-5255 Fixed
2014-06-24 15:54:11 +04:00
Alexey Sedunov
5e2c2b4eca
Pseudocode: Implement computation of expected type predicates
2014-06-23 19:32:25 +04:00
Alexey Sedunov
50228fa085
Pseudocode: Generate correct values for postfix increment/decrement
2014-06-23 19:32:22 +04:00
Alexey Sedunov
7c837909d8
Pseudocode: Bind result values to elements retrieved from resolved calls
2014-06-23 19:32:21 +04:00
Alexey Sedunov
4debb6eb6a
Expression Typing: Record resolved calls for labeled this-expressions
2014-06-23 19:32:20 +04:00
Alexey Sedunov
d01d186130
Pseudocode: Fix depth-first pseudocode traversal
2014-06-23 19:32:18 +04:00
Natalia Ukhorskaya
bdc60441c0
Try-catch exception value is not visible in debugger's local variables
...
#KT-3070 Fixed
2014-06-23 17:40:04 +04:00