Zalim Bashorov
91b87f41bc
incremental.cache -> incremental.components; IncrementalCacheProvider -> IncrementalCompilationComponents
2015-07-21 22:27:26 +03:00
Zalim Bashorov
1a96b45f27
To avoid NoSuchMethodError when overriden method declare more specific return type and the super method has an argument with default value (KT-5785)
2015-07-21 22:27:26 +03:00
Zalim Bashorov
df4f43267b
Provide location parameter in delegations
2015-07-21 22:27:26 +03:00
Zalim Bashorov
41449c107e
Location.NOWHERE -> UsageLocation.NO_LOCATION
2015-07-21 22:27:25 +03:00
Zalim Bashorov
e2e3520c3d
Add location parameter to JetScope::getClassifier
2015-07-21 22:27:25 +03:00
Zalim Bashorov
0f92036353
Add location parameter to JetScope::getFunctions
2015-07-21 22:27:25 +03:00
Zalim Bashorov
f79155df97
Add location parameter to JetScope::getProperties
2015-07-21 22:27:24 +03:00
Zalim Bashorov
2d2d510ef0
Introduce Location class to provide usage information in scopes
2015-07-21 22:27:24 +03:00
Stanislav Erokhin
8c912fdb6d
Fixed compilation
2015-07-21 21:59:17 +03:00
Stanislav Erokhin
47be8a7f06
Optimized equals method for TypeConstructor
2015-07-21 21:50:28 +03:00
Stanislav Erokhin
9e36e5a8b1
Not store call to resolutionResultsCache in INDEPENDENT mode
2015-07-21 21:50:27 +03:00
Stanislav Erokhin
f802d79305
Minor. move method
2015-07-21 21:50:27 +03:00
Pavel V. Talanov
edc3755b91
Do not build light classes for decompiled enum entries
2015-07-21 20:52:44 +03:00
Pavel V. Talanov
4e0d2bc23c
CompileTimeConstantUtils: use getConstant instead of evaluate
...
Hacky way to avoid passing builtins into this code
2015-07-21 20:52:43 +03:00
Pavel V. Talanov
855e3d2bf4
Inject ConstantExpressionEvaluator in BasicExpressionTypingVisitor via ExpressionTypingComponents
2015-07-21 20:52:42 +03:00
Pavel V. Talanov
add8387141
Fix some problems with jsCode function
...
1. Fix a bug in frontend when passing non-String constant led to exception
2. Fix a bug in backend when passing non-JetStringTeplate string constant led to exception
3. Avoid recomputing constant argument in backend
2015-07-21 20:52:42 +03:00
Pavel V. Talanov
b4825ada69
Refactor ExpressionTypingVisitorDispatcher
...
Inject in in ExpressionTypingServices
2015-07-21 20:52:41 +03:00
Dmitry Jemerov
3012815f5f
create KotlinReferenceUsageInfo in read action
2015-07-21 18:26:47 +02:00
Alexander Udalov
90d2a0dd3c
Revert incorrect change to .idea/compiler.xml
2015-07-21 19:12:06 +03:00
Dmitry Petrov
6437a4bdc6
Support overload ambiguity resolution for callable references by expected type.
...
Resolve callable references taking into account expected callable types.
This affects call resolution procedure (resolve 'foo' in for 'foo(::bar)') similar to the approach used for function literals:
* During "shape arguments" phase of call resolution, callable references are resolved in independent context without expected type. If the callable reference is ambiguous, its shape type is a function placeholder type without parameter types and return type information. Otherwise, it is a reflection type for the resolved function or property. Upper-level call is resolved without taking into account ambiguous callable references.
* During "complete call" phase of call resolution, resolve callable reference arguments to actual descriptors (if possible), and update constraint system for the given call accordingly.
#KT-6982 Fixed
#KT-5780 Fixed
2015-07-21 18:33:15 +03:00
Dmitry Jemerov
b3a2ee2148
delete KDoc Maven plugin
2015-07-21 16:48:38 +02:00
Dmitry Jemerov
b791ea03a9
code cleanup: cli-common module
2015-07-21 16:21:48 +02:00
Dmitry Jemerov
aa1f6f2252
code cleanup: core modules
2015-07-21 16:21:45 +02:00
Dmitry Jemerov
6a6f369e5d
code cleanup: plugin-api module
2015-07-21 16:20:56 +02:00
Dmitry Jemerov
43d2af166e
code cleanup: light-classes module
2015-07-21 16:20:56 +02:00
Dmitry Jemerov
a73df901ae
code cleanup: frontend.java module
2015-07-21 16:20:55 +02:00
Dmitry Jemerov
6bf934b472
code cleanup: frontend module
2015-07-21 16:20:51 +02:00
Dmitry Jemerov
e6776ebd8e
code cleanup: container module
2015-07-21 16:20:12 +02:00
Dmitry Jemerov
7c2b2dcc6a
code cleanup: backend-common, cli modules
2015-07-21 16:20:11 +02:00
Dmitry Jemerov
7db1650149
code cleanup: ant, backend modules
2015-07-21 16:20:10 +02:00
Dmitry Jemerov
af722c8acd
code cleanup: j2k module
2015-07-21 16:20:09 +02:00
Valentin Kipyatkov
e05c20b5c0
Completion: fixed ordering for packages + exclude for package items supported too
2015-07-21 16:00:10 +03:00
Valentin Kipyatkov
ace38ac57f
Fixed completion of explicitly imported non-top level packages broken by optimization before
2015-07-21 16:00:10 +03:00
Valentin Kipyatkov
4cfe92f1e5
Renamed method
2015-07-21 16:00:10 +03:00
Valentin Kipyatkov
14b63759a9
Added comment
2015-07-21 16:00:10 +03:00
Valentin Kipyatkov
3c289ade82
Removed unused method
2015-07-21 16:00:10 +03:00
Valentin Kipyatkov
e934d7166b
DescriptorKindFilter: more correct filtering of kind mask from excludes
2015-07-21 16:00:09 +03:00
Mikhail Glukhikh
94a00540be
Targeting / retention for a set of standard annotations, some inapplicable annotation checks replaced with target check, some fixed tests
2015-07-21 15:36:53 +03:00
Dmitry Jemerov
a75daf85e2
code cleanup: 'idea' module
2015-07-21 14:26:20 +02:00
Dmitry Jemerov
c718b6f9a3
code cleanup: rest of small modules under 'idea'
2015-07-21 14:26:19 +02:00
Dmitry Jemerov
9142d48e81
code cleanup: eval4j, ide-common, idea-analysis
2015-07-21 14:26:18 +02:00
Mikhail Glukhikh
9e7a67fabf
Warning about java.lang.annotation.Target annotation usage
2015-07-21 15:20:37 +03:00
Mikhail Glukhikh
cf26310042
Java to Kotlin annotation target mapping: relevant fix for J2K
2015-07-21 15:20:34 +03:00
Mikhail Glukhikh
1309c1f95f
Annotation mapper is introduced to map java annotation targets to kotlin targets + a set of new / fixed tests
2015-07-21 15:20:31 +03:00
Denis Zharkov
3ec00114c0
Check type of elvis with expected type info
...
#KT-6713
2015-07-21 15:16:06 +03:00
Denis Zharkov
53edb83a56
Minor. More strict precondition for SAM adapter creation
...
Descriptor should be initialized before creating SAM adapter
2015-07-21 15:16:06 +03:00
Denis Zharkov
58e7923218
Use substituted return type for SAM adapeter of constructor
...
#KT-7282 Fixed
2015-07-21 15:16:06 +03:00
Denis Zharkov
97af85da9c
Change default upper bound of Java type parameters to Any!
...
#KT-7672 Fixed
2015-07-21 15:16:05 +03:00
Alexander Udalov
0e69ebb288
Improve stack traces of exceptions thrown by LockBasedStorageManager
...
Drop leading frames which only contain memoized functions' and lazy values'
invokes, so that the first frame corresponds to the meaningful place in the
code
2015-07-21 13:32:26 +03:00
Alexander Udalov
b5763e311f
Minor, unworkaround the fixed issue
2015-07-21 13:32:26 +03:00