pTalanov
063ece5ad5
Add js.translator dependency to cli. Draft K2JSCompiler (just a placeholder)
2012-04-28 22:47:37 +04:00
pTalanov
e4e4fb256a
Pull some code from K2JVMCompiler to CLICompiler. Also requires a hack due to compiler bug.
2012-04-28 22:47:36 +04:00
pTalanov
16cc4bc8d7
Add abstract methods to CompilerArguments. Add parameters to K2JSCompilerArguments.
2012-04-28 22:47:36 +04:00
pTalanov
66e10a18a3
JetCoreEnvironment for JS and JVM are separated.
2012-04-28 22:47:35 +04:00
pTalanov
eadb98af53
Extract some of the JetCompiler functionality to CompilerUtils and CompilerEnvironment classes.
2012-04-28 22:47:34 +04:00
pTalanov
f9d87cbf4b
Move doMain method to CLICompiler.
2012-04-28 22:47:34 +04:00
pTalanov
cdfa0678cf
Extract reusable functionality from K2JVMCompiler, K2JVMCompilerArguments, CompilerEnvironmentConfiguration.
2012-04-28 22:47:33 +04:00
Stepan Koltsov
98bd8bc90a
fix KDoc compilation
...
we should probably add alt-header for java.lang.Object that specifies
return type of Object.toString to String (without ?)
2012-04-28 20:34:33 +04:00
Stepan Koltsov
b24634eb99
actually compile should be on by default
...
(it is safer)
2012-04-28 20:34:33 +04:00
Stepan Koltsov
661b16359a
resolve jdk classes
2012-04-28 17:43:53 +04:00
Stepan Koltsov
7352da34ef
resolve type parameters that reference type variables declared after
...
like
Aaa<B extends Bbb<C>, C>
#KT-1731 fixed
2012-04-28 17:43:53 +04:00
Stepan Koltsov
615330ca75
identified can have last segment "namespace", for instance, javax.xml.namespace
2012-04-28 17:43:53 +04:00
Stepan Koltsov
7af5282a26
resolve generic constructor
2012-04-28 17:43:52 +04:00
Stepan Koltsov
0073959224
intersection of empty types is widest possible type (Any?)
2012-04-28 17:43:52 +04:00
Alex Tkachman
f076ff027d
KT-729 Need to support arrays as varargs
2012-04-28 10:43:49 +03:00
Alex Tkachman
7b7987ba0d
KT-1759 str.plus(str)
2012-04-28 08:09:02 +03:00
Svetlana Isakova
ebff94a632
NPE from EA fixed
2012-04-27 22:27:38 +04:00
Andrey Breslav
d72c655bd7
Option added: switch off compilation of stdlib and jdk-headers
...
To achieve the desired result, in your run configuration add an environment variable named kotlin.tests.actually.compile and set it to "NO!"
2012-04-27 22:01:58 +04:00
Andrey Breslav
3ee8c5e469
A warning added: parameter names disagree upon override
...
This should be an error, but there is an issue with Java interop: Java parameters may change names or not have them.
2012-04-27 21:33:48 +04:00
Andrey Breslav
553b99f198
Unused method removed
2012-04-27 20:05:43 +04:00
Andrey Breslav
ebfb1ec792
KT-1558 Exception while analyzing
...
KT-1558 Fixed
2012-04-27 20:05:42 +04:00
Andrey Breslav
5453598b2f
Declared vs inherited default values
...
A value parameter _declares _a default value when the value is explicitly provided in the declaration of the parameter.
A value parameter _has_ a default value when it declares a default value or an overridden function declares it for the same parameter
2012-04-27 20:05:42 +04:00
Andrey Breslav
d3ceaf7656
Copy-paste bug fixed
...
The test is supposed to check classes and objects
2012-04-27 20:05:42 +04:00
Andrey Breslav
88a0f70e8f
Assertion added
2012-04-27 20:05:42 +04:00
Stepan Koltsov
baf71bf764
fix testOverrideJavaMethod
2012-04-27 19:33:34 +04:00
Stepan Koltsov
f74ba83124
typo
2012-04-27 19:09:41 +04:00
Stepan Koltsov
a17d7764b1
generify JavaDescriptorResolverTest
2012-04-27 19:09:40 +04:00
Stepan Koltsov
fc732ef477
ReadJavaBinaryClassTest: find java files, not kotlin files
2012-04-27 19:09:40 +04:00
Stepan Koltsov
286b4c4d4b
simplify filters in JetTestCaseBuilder
2012-04-27 19:09:39 +04:00
Stepan Koltsov
e959c62ee4
remove unused code
2012-04-27 19:09:39 +04:00
Stepan Koltsov
fca0b8a530
extract resolveConstructor method
2012-04-27 19:09:38 +04:00
Stepan Koltsov
583e3c9b85
diag in ReadJavaBinaryClassTest
2012-04-27 19:09:38 +04:00
Stepan Koltsov
225c9b4fa0
java classes should extend java.lang.Object
...
#KT-1121 fixed
2012-04-27 16:16:02 +04:00
Andrey Breslav
d67cc468d8
KT-1862 Wrong MANY_IMPL_MEMBERS_NOT_IMPLEMENTED when trait extends class
...
#KT-1862 Fixed
2012-04-27 10:58:27 +04:00
Andrey Breslav
dc7e6cd3f6
A clarifying message added to an assertion
2012-04-27 10:53:02 +04:00
Andrey Breslav
83de1581ca
Trust your spell-checker: it's "overridden"
2012-04-27 10:47:28 +04:00
Andrey Breslav
227d50945c
Cleanup
2012-04-27 10:43:14 +04:00
Andrey Breslav
1795ca9830
Unnecessary casts removed
2012-04-27 10:29:52 +04:00
Andrey Breslav
b1627e3897
Provide separate access to declared callable members as opposed to all callable members
...
All callable members contain "fake overrides", declared don't
2012-04-27 00:05:31 +04:00
Andrey Breslav
5f75be6253
No need to expose this scope as writable
2012-04-26 23:58:36 +04:00
Andrey Breslav
058e4b833b
Checks for default parameter value consistency
...
Inheriting default values from multiple superclasses is prohibited
2012-04-26 17:33:16 +04:00
Andrey Breslav
07c5f8e12a
MutableClassDescriptor.getCallableDescriptors() now includes "fake overrides"
...
Otherwise, it was necessary to call getAllDescriptors() on the member scope, which seems like a bad idea.
Adjustments have been made to the client code, to exclude "fake overrides" from irrelevant checks.
2012-04-26 17:33:16 +04:00
Andrey Breslav
3a56b7905d
Default parameter values are not allowed in overriding functions
2012-04-26 17:33:15 +04:00
Andrey Breslav
577918a119
Fixed the coding style
...
* space after type cast
* space in array initializer
2012-04-26 17:33:15 +04:00
Andrey Breslav
136b07e7e1
Introduced the notion of "overriding" for value parameters
...
Example:
trait A {
fun foo(a : Int)
}
class B : A {
override fun foo(a : Int) {}
}
B.foo.a overrides A.foo.a
2012-04-26 17:33:15 +04:00
Pavel Talanov
d8f603b3e0
Fix compiler
2012-04-26 14:46:04 +04:00
Nikolay Krasko
800f289ba3
Some new icons - kotlin file icon
2012-04-26 13:50:37 +04:00
pTalanov
272bac357d
Fix for teamcity build.
2012-04-25 21:02:45 +04:00
pTalanov
9f92b0b5d7
Refactor cli: all the jvm stuff goes under org.jetbrains.jet.cli.jvm, common stuff under org.jetbrains.jet.cli.common
2012-04-25 20:39:44 +04:00
pTalanov
d0d5b147f2
Refactor cli: all the jvm stuff goes under org.jetbrains.jet.cli.jvm, common stuff under org.jetbrains.jet.cli.common
2012-04-25 20:19:15 +04:00