Commit Graph

2031 Commits

Author SHA1 Message Date
Evgeny Gerashchenko 22010a5ae0 Changed RemovePartsFromPropertyFix so it uses SpecifyTypeExplicitlyAction.addTypeAnnotation() instead of AddReturnTypeFix.addPropertyType(). 2012-05-03 20:51:42 +04:00
Evgeny Gerashchenko c80ac15b8a Copied and rewritten adding type for functions. 2012-05-03 20:51:42 +04:00
Evgeny Gerashchenko ab96dcc69c Moved addTypeAnnotation/removeTypeAnnotation methods from refactoring package to SpecifyTypeExplicitlyAction. 2012-05-03 20:51:42 +04:00
Evgeny Gerashchenko 78ab4b6ae7 Added functions logic in SpecifyTypesExplicitlyAction. 2012-05-03 20:51:42 +04:00
Evgeny Gerashchenko 322578b773 Replaced AddReturnTypeFix with SpecifyTypeExplicitlyAction for properties. 2012-05-03 20:51:42 +04:00
Evgeny Gerashchenko c0b78cd635 Added tests for SpecifyTypeExplicitlyAction. 2012-05-03 20:51:42 +04:00
Evgeny Gerashchenko 6d1bfce94a Implemented compacting type names and adding valid imports in specify type explicitly intention. 2012-05-03 20:51:42 +04:00
Svetlana Isakova 3053ac78e4 MUST_BE_WRAPPED_IN_A_REF was renamed to CAPTURED_IN_CLOSURE (immutable variables are stored there as well) 2012-05-03 19:30:13 +04:00
Svetlana Isakova d4b816ef56 KT-1743 Analyze immutable local variables and parameters which are captured in closure
#KT-1743 fixed
2012-05-03 17:56:45 +04:00
Alex Tkachman d58e988ca5 incorporating Sveta's patch on VariableAsFunctionResolvedCall 2012-05-03 12:56:51 +03:00
Evgeny Gerashchenko 6dd5780cbd Replaced plain-text types rendered in IdeErrorMessages with HTML. 2012-05-02 20:51:17 +04:00
Evgeny Gerashchenko 4b45f5cf3f Disallowed creating Kotlin files outside source directories.
#KT-1623 fixed
2012-05-02 20:42:42 +04:00
Evgeny Gerashchenko 33f9a391a5 Added test for case when type from overridden method has same short name as something already present.
#KT-1602 fixed
2012-05-02 19:54:31 +04:00
Evgeny Gerashchenko 2fcc7b0cbb Implemented compacting type names and adding valid imports in override/implements handler.
#KT-1602 fixed
2012-05-02 19:54:29 +04:00
Evgeny Gerashchenko 298d98ee12 Extracted generatedOverridingMembers() method in OverrideImplementMethodsHandler. 2012-05-02 19:43:17 +04:00
Evgeny Gerashchenko 97d96b480e Changed completion for classes, so if they have the same name as already imported, new import is not added. Qualified name is inserted instead. 2012-05-02 19:43:16 +04:00
pTalanov 3d97549872 Comment out test which corrupt teamcity build. 2012-05-02 18:09:22 +04:00
pTalanov 7ba22df327 Extract JetCompilerMessagingTest from IDECompilerMessagingTest. 2012-05-02 15:25:05 +04:00
pTalanov ce929fab49 Rename CompileEnvironmentConfiguration. Drop ArgsUtil class. Add CompilerSpecialMode.JS. 2012-05-02 15:23:40 +04:00
pTalanov 7da1e31eca Merge remote-tracking branch 'origin/master'
Conflicts:
	build-tools/core/src/org/jetbrains/jet/buildtools/core/BytecodeCompiler.java
	compiler/cli/src/org/jetbrains/jet/cli/jvm/K2JVMCompiler.java
	compiler/cli/src/org/jetbrains/jet/cli/jvm/compiler/CompileEnvironmentConfiguration.java
	compiler/cli/src/org/jetbrains/jet/cli/jvm/compiler/JetCoreEnvironment.java
	compiler/tests/org/jetbrains/jet/JetTestUtils.java
	compiler/tests/org/jetbrains/jet/codegen/CompileTextTest.java
2012-05-02 13:39:36 +04:00
Svetlana Isakova a2e11821de resolvedCalls set instead of multiMap stored in ResolutionTask 2012-04-30 15:44:22 +04:00
pTalanov 3e8624b440 Add test which checks whether compiler messages are understood correctly by the plugin. 2012-04-28 23:03:55 +04:00
pTalanov 063ece5ad5 Add js.translator dependency to cli. Draft K2JSCompiler (just a placeholder) 2012-04-28 22:47:37 +04:00
pTalanov eadb98af53 Extract some of the JetCompiler functionality to CompilerUtils and CompilerEnvironment classes. 2012-04-28 22:47:34 +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
Stepan Koltsov baf71bf764 fix testOverrideJavaMethod 2012-04-27 19:33:34 +04:00
Stepan Koltsov 286b4c4d4b simplify filters in JetTestCaseBuilder 2012-04-27 19:09:39 +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 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
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 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
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 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
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 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 d5e103601b Debug output removed 2012-04-24 21:22:46 +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
Nikolay Krasko b62f49c965 Some new icons - beta version 2012-04-24 19:17:16 +04:00