Yan Zhulanow
bffb24b075
Add publicField annotation
2015-07-07 16:35:22 +03:00
Ilya Gorbunov
2c4db42319
Drop deprecated char binary operations.
2015-07-04 04:45:59 +03:00
Nikolay Krasko
ff9c251438
Filter out overridden candidates before looking for most specific
...
This filtering will remove signature duplicates that prevent findMaximallySpecific() from finding best candidate.
2015-07-03 20:59:48 +03:00
Evgeny Gerashchenko
aa65eb1055
More proper fix for KT-8137/EA-69470: avoiding failed assertion when searching usages of parameter of local class constructor
...
KT-8137 AE at JetSourceNavigationHelper.convertNamedClassOrObject() on function local class with several constructor parameters
#KT-8137 fixed
#EA-69470 fixed
2015-07-03 16:00:06 +03:00
Alexander Udalov
7dcb33fcf2
Minor, don't store type in receiver parameter
2015-07-03 15:32:19 +03:00
Stanislav Erokhin
1e7b96aec0
replace ArrayList to SmartList
2015-07-02 16:32:46 +03:00
Stanislav Erokhin
2f68cc4c97
Created reset method.
2015-07-02 16:32:45 +03:00
Stanislav Erokhin
298a27951f
Use System.nanoTime() instead threadMxBean.getCurrentThreadUserTime()
2015-07-02 16:32:45 +03:00
Stanislav Erokhin
45a3d7ec46
Create performance counter with excluded counters
2015-07-02 16:32:45 +03:00
Stanislav Erokhin
d830729ddb
change creation of performance counters
2015-07-02 16:32:44 +03:00
Stanislav Erokhin
9974423e2b
Disable performance time counters by default
2015-07-02 16:32:44 +03:00
Mikhail Zarechenskiy
2fcb46bb13
Override all methods from based visitor class
2015-07-01 22:25:28 +03:00
Pavel V. Talanov
15a4782a0c
Move CompilationCanceledStatus and related utils to "util" module
...
It should not be in "frontend" since "jps bare plugin" artifact does not include "frontend" module
2015-07-01 21:21:35 +03:00
Pavel V. Talanov
9a9d70fd98
Decompiler: do not try to render function types with star projections prettily
2015-07-01 20:45:32 +03:00
Mikhail Glukhikh
7c7a0fb4ea
trait to interface (StubInterfaces)
2015-06-30 19:46:33 +03:00
Mikhail Glukhikh
848c2afdb4
"is" over enum entry is now an error + new tests + test fixes
2015-06-30 19:46:30 +03:00
Mikhail Glukhikh
e1d3b296e9
Exhaustive when over enum may now use "is" instead of comparison + a pair of tests
2015-06-30 19:46:28 +03:00
Pavel V. Talanov
b173f96505
Refactor: Remove ScopeProvider, introduce FileScopeProviderImpl
...
Rename NoFileScopeProvider -> FileScopeProvider.ThrowException, ScopeProvider.AdditionalScopeProvider -> FileScopeProvider.AdditionalScopes
2015-06-30 16:12:23 +03:00
Nikolay Krasko
8bea21a847
Introduce BodyResolveCache for storing resolve function body task in IDE
2015-06-30 13:54:42 +03:00
Nikolay Krasko
2dfed03b67
Refactoring: rename method addAllMyDataTo -> addOwnDataTo
2015-06-30 13:54:41 +03:00
Nikolay Krasko
09bb050c3f
Add addOwnDataTo() to BindingContext
2015-06-30 13:54:40 +03:00
Nikolay Krasko
980a0d19be
Refactoring: don't register scopes explicitly, get them from scope provider on demand
2015-06-30 13:54:38 +03:00
Nikolay Krasko
b81d8eb484
Refactoring: Don't depend on whole context if only DataFlowInfo is needed
2015-06-30 13:54:37 +03:00
Nikolay Krasko
fad883e55b
Minor: remove outdated commit
2015-06-30 13:54:36 +03:00
Valentin Kipyatkov
5b997c2c43
Moved method
2015-06-29 19:36:49 +03:00
Valentin Kipyatkov
de2378f909
Rewritten NameValidatorImpl to be both more efficient and more correct
2015-06-29 19:36:47 +03:00
Valentin Kipyatkov
786793744e
Added getEqualsToken for future use
2015-06-29 19:29:26 +03:00
Valentin Kipyatkov
98c0c636b3
Smaller availability range for add argument name intention
2015-06-29 19:29:26 +03:00
Valentin Kipyatkov
9d83510af5
KT-7144 Intention action on an argument in a call to use named arguments form
...
#KT-7144 Fixed
2015-06-29 19:29:25 +03:00
Valentin Kipyatkov
c689af142a
Fixed highlighting for enum and object names in code
...
#KT-8134 Fixed
2015-06-29 19:29:25 +03:00
Ilya Gorbunov
86f4a1b6e4
Compiler&plugin deprecations cleanup: replace streams with sequences.
2015-06-29 17:06:40 +03:00
Ilya Gorbunov
5779b89ff0
Deprecations cleanup: sequence -> asSequence
2015-06-29 17:06:33 +03:00
Ilya Gorbunov
765733b791
Compiler&plugin deprecations cleanup: withIndices -> withIndex or mapIndexed
2015-06-29 17:06:31 +03:00
Ilya Gorbunov
32144257ec
Compiler&plugin deprecations cleanup: length, size, indices, tail and other collection operations.
2015-06-29 17:06:28 +03:00
Ilya Gorbunov
2c31a1a345
Compiler&plugin deprecations cleanup: *array -> *arrayOf, copyToArray -> toTypedArray.
2015-06-29 17:06:12 +03:00
Michael Nedzelsky
c462d23a0e
add support for cancel compilation from IDE
...
#KT-8158 Fixed
2015-06-29 16:41:16 +03:00
Alexey Sedunov
f6965b5004
PSI: Add parentheses around annotated expressions in returns
...
#KT-8260 Fixed
2015-06-27 13:58:03 +03:00
Alexey Sedunov
8c9863e759
PSI: Add parentheses around non-trivial callee expressions
...
#KT-8232 Fixed
2015-06-27 13:58:02 +03:00
Pavel V. Talanov
65c6adfaa4
Drop "injector-generator" module, tests and existing generated injectors
...
Move GeneratorsFileUtil to "generators" module
Drop "Generate Injectors" run configuration
2015-06-26 15:21:43 +03:00
Pavel V. Talanov
df529f1a4b
Convert usages of existing generated injectors to dynamic injectors
...
Rewrite RuntimeModuleData to use hand-written code as we do not pack container module into runtime
This change introduces some overhead (up to 10% for the tests I ran) in some scenarios in IDE, that should be addressed later
2015-06-26 15:21:41 +03:00
Ilya Ryzhenkov
5db541ee24
Add container module with implementation of di based on java reflection
...
Initial implementation by Ilya Ryzhenkov
Renovation, optimization, integration and removal of unused features by Pavel Talanov
2015-06-26 15:21:39 +03:00
Valentin Kipyatkov
c5f0fbf327
Replaced JetScopeUtils.getResolutionScope() with more correct utility
2015-06-25 21:58:15 +02:00
Mikhail Glukhikh
6e2395471d
Sealed code generation: sealed is considered abstract, correct serialization
...
A pair of tests provided.
2015-06-25 19:07:23 +03:00
Mikhail Glukhikh
4517e15299
Minor refactoring of resolveDelegationSpecifierList
2015-06-25 19:07:18 +03:00
Mikhail Glukhikh
f6872dfbea
Exhaustive when support for sealed classes #KT-7606 Fixed
...
When on sealed can use is (both for derived classes and objects) or just comparison (only for derived objects).
A pack of tests provided.
2015-06-25 19:07:16 +03:00
Mikhail Glukhikh
8d25c20169
Introduction of sealed classes
...
Sealed classes can be derived only by their own inner classes or objects.
Their constructors cannot be called explicitly, so compiler knows all their descendants.
Incompatible modifier checks (final, abstract). Impossible with interface, object, enum.
A pack of tests provided.
2015-06-25 19:07:13 +03:00
Alexander Udalov
0593b833b5
Check extension receiver properly for property references
...
Without this, the unrelated type specified on the LHS of a property reference
literal was considered to be an extension receiver of the candidate, and the
resolution was erroneously successul. This is only reproducible for properties,
because if we're trying to resolve an extension, we consider all properties
from the scope, even non-extensions, because there may be a property of an
extension-functional type (T.() -> R). (We don't do this for functions.)
#KT-7430 Fixed
#KT-7945 Fixed
2015-06-23 23:35:17 +03:00
Nikolay Krasko
8013cbe4ef
Fix forEach method in TrackingSlicedMap
2015-06-23 16:00:40 +03:00
Pavel V. Talanov
f454b7d15e
AnalyzerFacade: resolvers for modules are created lazily
2015-06-23 15:19:31 +03:00
Pavel V. Talanov
96199ecc1f
Refactor AnalyzerFacade: move module.initialize() outside of createResolverForModule()
2015-06-23 15:19:22 +03:00