Commit Graph

9894 Commits

Author SHA1 Message Date
Alexander Udalov 91f110acd4 Preloader: support many resources by given name 2014-12-29 18:19:22 +03:00
Alexander Udalov 5e261e344e Move ExitCode to cli-common, simplify KotlinCompilerRunner
- check exit code's toString instead of integer code: more readable and stable
  this way
- call newInstance() on arguments' classes instead of pointless constants
2014-12-29 18:19:20 +03:00
Alexander Udalov 45c6d486fc Refactor CompilerRunnerUtil
Eliminate code duplication, add NotNull, make everything private, etc
2014-12-29 18:17:22 +03:00
Alexander Udalov b8328f9190 Rename MessageRenderer constants 2014-12-29 18:17:21 +03:00
Alexander Udalov 14dab749a2 Use reflection in Ant task to invoke compiler
This will allow a more controlled management of the runtime that the compiler
is linked against. Incidentally this also allows Ant task to use any of
compiler arguments via <compilerarg> because Ant task is now just a facade for
the CLI compiler.

The test "wrongArguments" is deleted because the full compiler usage is now
printed out on a wrong <compilerarg>, and this will become inconvenient to
update with each change in compiler arguments

 #KT-5618 Fixed
2014-12-29 18:00:18 +03:00
Alexander Udalov 3bde619ca3 Add test for obsolete issue
#KT-4434 Obsolete
2014-12-29 18:00:17 +03:00
Alexander Udalov 91754c0c4b Move test files to test data root 2014-12-29 18:00:16 +03:00
Nikolay Krasko 3d254748b4 Minor: better function used and reformat 2014-12-29 17:55:21 +03:00
Dmitry Jemerov eca8ed2768 Merge pull request #541 from JetBrains/rr/yole/coverageView2
Implement APIs added in IDEA 14.1 for Packages view and Coverage view to work
2014-12-29 14:49:14 +01:00
Dmitry Jemerov 553fd4dd12 code review; adapted to IDEA API change (Predicate -> Condition) 2014-12-29 12:29:01 +01:00
Andrey Breslav 42113b5e58 Filtering error types and accounting for platform types when computing intersections
KT-6508 Build impossible because of NoSuchElementException

 #KT-6508 Fixed
2014-12-29 14:13:14 +03:00
Svetlana Isakova 2d1891c63f Minor: moved checkTraitRequirements 2014-12-27 15:15:11 +03:00
Svetlana Isakova b8cef2925f Refactoring: simplified resolveFunctionCall
Extracted resolveCallForConstructor, resolveCallForThisExpression
2014-12-27 00:55:45 +03:00
Svetlana Isakova 333a91395a Moved TailRecursionKind to cfg package 2014-12-27 00:55:44 +03:00
Svetlana Isakova 509a8adae5 Refactoring: moved capturing in closure check to call resolver extension 2014-12-27 00:55:44 +03:00
Svetlana Isakova bc060dd145 Moved call resolver extensions to subpackage 2014-12-27 00:55:43 +03:00
Svetlana Isakova 37abdc2ca6 Rewritten captured type approximation test
Approximation bounds may be non-trivial both (in this case we ignore 'in' projection);
no need for special interpretation of 'Nothing?'
2014-12-27 00:55:28 +03:00
Svetlana Isakova 7daf9b53ce Minor: added a comment 2014-12-27 00:55:27 +03:00
Svetlana Isakova 74a08c9747 Added tests for simple approximation (of Captured(out/in Int)) 2014-12-27 00:55:26 +03:00
Svetlana Isakova 9d09a4d1b4 Fixed message for TYPE_INFERENCE_EXPECTED_TYPE_MISMATCH error 2014-12-27 00:55:26 +03:00
Svetlana Isakova 7b09e85717 Added check for incompatible variance modifiers and repeated modifiers 2014-12-27 00:55:25 +03:00
Svetlana Isakova d2becce1ac Make vararg argument of java annotation have 'out' type 2014-12-27 00:55:23 +03:00
Svetlana Isakova d1556331ef Simplified signatures propagation for vararg types
(do not change flexible types)
2014-12-27 00:55:23 +03:00
Svetlana Isakova 179c9ef2d6 Refactoring. Moved error checks (for abstract, super)
to CandidateResolver

 Added error SUPER_CANT_BE_EXTENSION_RECEIVER (it was SUPER_IS_NOT_AN_EXPRESSION)
2014-12-27 00:55:22 +03:00
Svetlana Isakova 62c8a6f79a Fixed resolve for callable references
functions and properties have the same priority
2014-12-27 00:55:22 +03:00
Alexander Udalov 11dfdfc123 Minor, add test for obsolete issue
#KT-4228 Obsolete
2014-12-26 22:52:39 +03:00
Valentin Kipyatkov 18a536c846 Added test for correct package names resolve inside local classes 2014-12-26 16:23:19 +03:00
Valentin Kipyatkov b61b45f794 Renamed class + inherited NoSubpackagesInPackageScope from adapter class to get printScopeStructure implementation 2014-12-26 16:23:19 +03:00
Valentin Kipyatkov a383a82ddd No subpackages of current package resolved by short name 2014-12-26 16:23:19 +03:00
Valentin Kipyatkov 1f17d7adcd Changed language sematics: imports with '*' do not import packages anymore 2014-12-26 15:45:01 +03:00
Andrey Breslav 06c5be6489 Fix tests: No dangling annotations in stubs 2014-12-26 15:10:13 +03:00
Michael Nedzelsky eded72d633 fix KT-6192: VerifyError when using spreads with primitive arrays
#KT-6192 Fixed
2014-12-25 22:07:24 +03:00
Andrey Breslav fb7fe81a85 Support navigation to dangling annotations in the IDE 2014-12-25 22:02:23 +03:00
Andrey Breslav 89e1588e13 LIGHT_CLASSES mode for scripts
- Do not generate constructor bodies
- Do not generate script class when package contents are requested
- NOT DONE: generate script class when its name is requested
2014-12-25 22:02:23 +03:00
Andrey Breslav 95f5e8d08c Fix exception from completion and other services 2014-12-25 22:02:23 +03:00
Andrey Breslav 292cb9baa9 Resolve dangling annotations in files and class bodies 2014-12-25 19:42:38 +03:00
Alexey Sedunov e296390dd6 Introduce Variable: Do not create separate template to edit type reference
#KT-4314 Fixed
2014-12-25 17:12:19 +03:00
Pavel V. Talanov 2fe77d2c6c Fix problem with several runtimes configured 2014-12-25 15:49:49 +03:00
Andrey Breslav 0b01667ad1 Incorrect assertions removed: these methods are used by completion
Completion correctly proposes packages in type position, as part of an incomplete fqName
2014-12-24 17:53:02 +03:00
Dmitry Jemerov 732c3fac2f Implement APIs added in IDEA 14.1 for Packages view and Coverage view to work. 2014-12-24 15:32:26 +01:00
Pavel V. Talanov d6881b78d2 Add hack to avoid stub ast mismatch when decompiling libraries built with M9 compiler 2014-12-24 16:49:59 +03:00
Nikolay Krasko 5745a1624b Take read action instead of simply asserting it 2014-12-24 15:40:47 +03:00
Valentin Kipyatkov f1840a4f39 Fixed detection of parenthesis needed (otherwise it added them around if when not needed) 2014-12-24 14:19:26 +03:00
Valentin Kipyatkov 3db51cfcd8 KT-5927 Join Lines could merge nested if's
#KT-5927 Fixed
2014-12-24 14:19:26 +03:00
Valentin Kipyatkov 37e40267fe KT-6521 Expand selection works wrong on a call inside for loop's range
KT-6518 Extend selection not working for expression in if

 #KT-6521 Fixed
 #KT-6518 Fixed
2014-12-24 14:17:43 +03:00
Alexey Sedunov 7d31c562b3 Remove braces from block string template entry: Simplify implementation 2014-12-23 20:43:20 +03:00
Alexey Sedunov 6084352d37 Introduce Variable: Properly convert function body to block when needed
#KT-5353
2014-12-23 20:43:17 +03:00
Alexey Sedunov c73253259f PSI: Move getEqualsToken() method to JetDeclarationWithBody 2014-12-23 20:43:16 +03:00
Andrey Breslav 93326d8643 Added centralized positioning for front-end exceptions 2014-12-23 18:37:40 +03:00
Michael Bogdanov db40a5a3d8 Skip local declarations in visibility publicity checking 2014-12-23 16:28:44 +03:00