Nikolay Krasko
5a310237e7
Cache constructed scope for file. Don't recount it each time in additional function resolve.
2014-12-31 21:56:21 +03:00
Zalim Bashorov
9869ae10e5
JS frontend: allow to omit body for native functions and initializer for native properties. Additionally suppress UNUSED_PARAM for new nativeX annotations too.
2014-12-29 21:37:18 +03:00
Zalim Bashorov
41dff74037
resolve/*Diagnostics* -> resolve/diagnostics/*Diagnostics*
...
And remove unused TraceUtil.java
2014-12-29 21:37:18 +03:00
Nikolay Krasko
3d254748b4
Minor: better function used and reformat
2014-12-29 17:55:21 +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
7daf9b53ce
Minor: added a comment
2014-12-27 00:55:27 +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
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
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
Andrey Breslav
fb7fe81a85
Support navigation to dangling annotations in the IDE
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
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
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
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
Andrey Breslav
6728a384e4
KT-4881 Annotation resolved to package should be compile-time error
...
#KT-4881 Fixed
2014-12-23 15:18:47 +03:00
Andrey Breslav
830e4dfd98
Pointless annotations removed
2014-12-23 15:07:45 +03:00
Andrey Breslav
0880c20614
Rename ONLY_CLASSES -> ONLY_CLASSES_AND_PACKAGES
2014-12-23 15:07:45 +03:00
Natalia Ukhorskaya
8896aa93b4
Fix NPE in ReferenceVariantsHelper
...
#KT-6500 Fixed
2014-12-23 14:40:27 +03:00
Pavel V. Talanov
70f6fcadc9
Increase stub version
2014-12-21 14:23:43 +03:00
Pavel V. Talanov
33fc241158
Rework go to symbol/class and getNavigationElement() for kotlin declarations
...
Based on work by geevee
2014-12-21 14:23:28 +03:00
Pavel V. Talanov
afc6ba5e16
Build kotlin stubs for compiled Kotlin files
...
This means that JetPsi would be built for compiled kotlin files
2014-12-21 14:23:25 +03:00
Pavel V. Talanov
e20dd42aa4
Refactor stubs:
...
Convert all interface classes to kotlin and move them into one file
Convert some of Impl classes
Fix typo: hasValOrValNode
Extract ModifierMaskUtils
Minors
2014-12-21 14:23:24 +03:00
Andrey Breslav
633a4aa8f2
Self-types marked as unsupported
2014-12-19 20:36:16 +03:00
Nikolay Krasko
f8dc0d028d
Remove warning about long look-ahead
...
It's do a annoying warn when there's a code like this:
{
call(params)
call(params)
call(params)
}
2014-12-19 17:29:24 +03:00
Nikolay Krasko
db488ad295
Add utility function for getting text with context
2014-12-19 17:29:24 +03:00
Valentin Kipyatkov
f8ceb039bb
Added utilities
2014-12-18 19:02:16 +03:00
Zalim Bashorov
2484954e2f
Frontend tests: serialize dynamic call descriptors and check them in diagnostic tests.
2014-12-16 17:48:26 +03:00
Zalim Bashorov
d071c44126
Minor in Frontend: fix default getter return type.
2014-12-16 17:48:26 +03:00
Ilya Ryzhenkov
be717f48f8
Stop using deprecated APIs
2014-12-16 17:33:24 +03:00
Andrey Breslav
f9fea88749
PlatformStaticGenerator reworked to use FunctionCodegen.generateMethod()
2014-12-16 16:23:35 +03:00
Alexey Sedunov
bbf951ff03
Move: Fix reference binding for the case of default target package
...
#KT-6457 Fixed
2014-12-15 20:43:00 +03:00