Commit Graph

5117 Commits

Author SHA1 Message Date
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
pTalanov b1b9446f13 Fix warnings in K2JSRunConfiguration 2012-04-25 20:14:07 +04:00
Stepan Koltsov 3b43f30824 add JDK to CompilerDependencies 2012-04-25 19:36:22 +04:00
Stepan Koltsov c9edaa6b4f do not add annotations.jar to compiler classpath 2012-04-25 18:48:14 +04:00
Andrey Breslav c083876bf7 Properly report errors in the IDE when the compiler command line contains errors 2012-04-25 14:55:49 +04:00
Pavel V. Talanov 6e3d7cce61 Remove redundant analyzer wrapper. 2012-04-25 14:24:05 +04:00
Pavel V. Talanov 891dd9fc1c extract compiler error reporting functionality from KotlinToJVMBytecodeCompiler 2012-04-25 14:24:04 +04:00
Pavel V. Talanov 0f5dc3b3a6 Fix for a problem that caused all files to be analyzed completely in js analyzing facade. 2012-04-25 14:24:02 +04:00
Pavel V. Talanov b3ffaa89c3 Better handling of user provided paths. 2012-04-25 14:24:00 +04:00
Pavel V. Talanov 4488a62344 Rename K2JS run configuration to "Kotlin (JavaScript)" 2012-04-25 14:23:59 +04:00
Andrey Breslav 0a361f2377 Make VFS see the newly generated .class files 2012-04-25 12:53:05 +04:00
James Strachan 504f32d0d6 Merge pull request #43 from detouched/stringMethods
String methods
2012-04-25 01:44:18 -07:00
James Strachan 4502f81d6a Merge pull request #42 from cy6erGn0m/master
Add functions for File to read by lines and byte blocks
2012-04-25 01:42:43 -07:00
James Strachan 7f272897ea Merge pull request #45 from Frostman/arr-sugar
Array#lastIndex property has been added to stdlib
2012-04-25 01:41:49 -07:00
Andrey Breslav d0bd5cf9c6 Properly positioning compilation exceptions in the IDE 2012-04-25 12:25:00 +04:00
Andrey Breslav 3eb6b3d0f5 Formatting 2012-04-25 12:20:27 +04:00
Andrey Breslav 296c16a623 Remove unused class 2012-04-25 11:53:17 +04:00
Andrey Breslav 890e9f5c43 Providing the same command line for in-process and out-of-process compilation 2012-04-25 11:52:30 +04:00
Andrey Breslav fe9f8a0312 Getting process exit code from waitFor() 2012-04-25 11:26:31 +04:00
Andrey Breslav 47e096026d Escape XML strings in the compiler output 2012-04-24 22:41:04 +04:00
Stepan Koltsov 4a1c36d733 fix complex case of recursion in JavaDescriptorResolver
#KT-1804
2012-04-24 22:14:01 +04:00
Stepan Koltsov 0f3aa9e567 remove nop code 2012-04-24 22:14:00 +04:00
Stepan Koltsov ae913f4c0e replace assert with exception
* assert hides errors when code is executed without -ea
* it is easier to set up breakpoint
2012-04-24 22:14:00 +04:00
Andrey Breslav c686184847 KT-1860 Resolve annotations of function parameters
#KT-1860 Fixed
2012-04-24 21:53:23 +04:00
Andrey Breslav 81387c0745 Fixing a regression: Compiler exceptions are now reported to the Exception Analyzer 2012-04-24 21:22:46 +04:00
Andrey Breslav 211fa9dd80 Don't treat the root tag as a message tag 2012-04-24 21:22:46 +04:00
Andrey Breslav b467edfa03 Don't compile module scripts in verbose mode 2012-04-24 21:22:46 +04:00
Andrey Breslav d5e103601b Debug output removed 2012-04-24 21:22:46 +04:00
Andrey Breslav deaaf3042b Fixed compilation in build-tools 2012-04-24 21:22:46 +04:00
Andrey Breslav 0ab212b240 Module file is not needed when compiling modules 2012-04-24 21:22:45 +04:00
Andrey Breslav 8a40f943de Module script loading separated from module compilation 2012-04-24 21:22:45 +04:00
Andrey Breslav e6709ab272 Putting back the support for incremental compilation 2012-04-24 21:22:45 +04:00
Andrey Breslav ef90a333ba Prefix paths with the "file://" protocol
This is required for error positioning
2012-04-24 21:22:45 +04:00
Andrey Breslav d1a6c3e7f5 Unused class removed 2012-04-24 21:22:45 +04:00
Andrey Breslav 2693fc1130 Using a SAX parser for compiler output
The previous version of the output processing algorithm was quadratic in the size of a message
 which manifested in the case of a long stack trace of an internal error. Now we use a SAX parser that
 processes its input in linear time and notifies the environment as it goes.
2012-04-24 21:22:45 +04:00
Andrey Breslav 419f8c7415 Print a root tag in the XML output mode
Now, the compiler output in the "-tags" mode is enclosed into <MESSAGES>...</MESSAGES>
2012-04-24 21:22:45 +04:00
Nikolay Krasko b62f49c965 Some new icons - beta version 2012-04-24 19:17:16 +04:00
Evgeny Gerashchenko cc7284c67e Fixed failed assertions on navigating to 'Assertions' class of Kotlin runtime 2012-04-24 17:50:57 +04:00
Evgeny Gerashchenko 8c2457195e Fixed bug when ctrl+click on ArrayList.add() and other stuff navigated to alt-headers.
#KT-1815 fixed
2012-04-23 23:09:23 +04:00