Pavel V. Talanov
f06cef684e
Refactor: introduce JetReference, rename: JetPsiReference -> AbstractJetReference
...
Add resolveToDescriptors() to JetReference trait
Rewrite JetPsiReference to kotlin
2014-02-04 17:09:43 +04:00
Pavel V. Talanov
8e19ba9851
Fix JetSimpleNameExpression#getReceiver
...
Correct behaviour for unary, binary expressions and type references
Add instanceof checks in TipsManager so it's clear it only takes care of certain types of JetSimpleNameExpression
2014-02-04 17:09:41 +04:00
Andrey Breslav
e60bd514fa
StorageManager&ExceptionTracker delivered where needed
...
- GlobalContext introduced to group the two
- Caches track exceptions
2014-02-04 15:24:27 +04:00
Andrey Breslav
364182e3f0
Unneeded public parameters made private
2014-02-04 15:23:15 +04:00
Alexey Sedunov
7c1e28a748
Override/Implement methods: Use lazy analysis
2014-02-04 14:42:31 +04:00
Nikolay Krasko
f526129ca4
Refactoring: use injector for creating lazy resolve session
2014-02-04 12:31:38 +04:00
Nikolay Krasko
b8ddb658fb
Refactoring: hide fact of using injector inside lazy resolve session
2014-02-04 12:31:38 +04:00
Nikolay Krasko
36d5e580b4
Refactoring: remove unnecessary constructors (prepare for injectors)
2014-02-04 12:31:37 +04:00
Alexander Udalov
640dac834f
Suppress "nothing to override" on equals, hashCode, toString
...
This is needed to smoothly make equals, hashCode and toString members of Any
instead of being extensions, as they are now: according to our bootstrapping
process, the same compiler code will be built twice, by old compiler (with
extensions) and by new compiler (with members). In the resulting code
'override' should be on all these members in all classes, so the old compiler
should be able to compile such code
2014-02-03 16:26:17 +04:00
Natalia Ukhorskaya
420349bb95
Refactoring in CompileTimeChecker
2014-02-03 13:53:46 +04:00
Alexey Sedunov
f80fa8515a
Implement parameterIndex() function
2014-02-03 13:47:02 +04:00
Alexey Sedunov
374682e404
Extract utility methods from KotlinSafeDeleteProcessor
2014-02-03 13:46:59 +04:00
Zalim Bashorov
8a1ffeea70
JS backend: consider functions which renamed by annotations in simple mangling.
2014-02-03 13:31:24 +04:00
Daniil
c60523c0c6
A small confusing typo
...
Here was an out-of-date error message. It could confuse developers about the function literal syntax.
"To specify it explicitly use the {(p : Type) => ...} notation"
2014-02-02 17:25:10 +03:00
Alexander Udalov
4a0bfa5434
Remove outdated hack in DeclarationResolver
2014-01-31 16:46:17 +04:00
Alexander Udalov
877d9f2220
Update year to 2014 in generated files
2014-01-31 16:46:16 +04:00
Nikolay Krasko
eb2f3eee4d
Refactoring: remove warning
2014-01-31 14:52:15 +04:00
Nikolay Krasko
2bcedf45df
Refactoring: remove unused method
2014-01-31 14:52:14 +04:00
Nikolay Krasko
7546a6dc41
Suppressing warnings + update copyright date
2014-01-31 14:52:13 +04:00
Andrey Breslav
7a6657d2e8
Resolve sessions use exception tracking from StorageManager
2014-01-30 21:03:53 +04:00
Andrey Breslav
0f4994f8b0
Created LockBasedStorageManagerWithExceptionTracking
2014-01-30 21:03:53 +04:00
Andrey Breslav
26ecf7666d
Wrap storage manager inside resolve session
2014-01-30 21:03:53 +04:00
Andrey Breslav
6a29c38e5b
Components across the project use StorageManager
2014-01-29 15:38:44 +04:00
Andrey Breslav
d7e256e992
Making deferred types thread-safe
2014-01-29 15:38:44 +04:00
Natalia Ukhorskaya
e6e64c0098
Rename class
2014-01-28 18:21:48 +04:00
Natalia Ukhorskaya
36810c5bbb
Move IS_PURE for constant inside CompileTimeConstant
2014-01-28 18:21:45 +04:00
Natalia Ukhorskaya
3f429116e5
Add constructor parameter for compileTimeConstant (can be used in annotation)
2014-01-28 18:21:44 +04:00
Natalia Ukhorskaya
fd3f852a93
Annotation parameter must be constant on vararg and array arguments
2014-01-28 18:21:43 +04:00
Natalia Ukhorskaya
97da2def08
Record COMPILE_TIME_INITIALIZER for all final variables
2014-01-28 18:21:42 +04:00
Natalia Ukhorskaya
cf5dc5b98b
Fix EvaluateTests for strings
2014-01-28 18:21:41 +04:00
Natalia Ukhorskaya
73de3ae9ab
Catch exceptions evaluating expression
2014-01-28 18:21:40 +04:00
Natalia Ukhorskaya
694db27da0
Make IntegerValueTypeConstant implements CompileTimeValue<Number>. getValue() method for it is now deprecated - getValue(expectedType) should be used
2014-01-28 18:21:38 +04:00
Zalim Bashorov
bc26c66bc7
Frontend: don't resolve default parameters value when not need complete analysis.
2014-01-27 15:34:55 +04:00
Zalim Bashorov
d032b5589c
Frontend: fixed resolve annotation parameters on properties, accessors, accessor parameters, function parameters when not need complete analysis.
2014-01-27 15:34:55 +04:00
Alexey Sedunov
bb04c5fd95
Use light element origin instead of getNavigationElement()
2014-01-24 13:10:29 +04:00
Alexey Sedunov
75f67d5336
Add utility functions for conversion to light elements
2014-01-24 13:10:25 +04:00
Alexey Sedunov
fffae7b6a4
Forbid "safe delete" for anonymous objects
2014-01-24 13:10:23 +04:00
Alexey Sedunov
5cfb07072c
Reuse Java safe delete for Kotlin classes and objects
2014-01-24 13:10:22 +04:00
Valentin Kipyatkov
020ea99220
Intention "Convert to expression body"
2014-01-23 18:50:26 +04:00
Valentin Kipyatkov
3028cec4cd
More correct code transformations: do not perform formatter's job on yourself
2014-01-23 18:46:26 +04:00
Andrey Breslav
0f301e0d2a
Support force-resolving lazy annotations
2014-01-22 19:04:43 +04:00
Andrey Breslav
71dd3aaf86
Rename: LazyDescriptor -> LazyEntity
2014-01-22 19:04:43 +04:00
Andrey Breslav
04b47439bd
Use findAnnotation() instead of iterating through all annotations
2014-01-22 19:04:43 +04:00
Andrey Breslav
2ac0853225
Make room for laziness in the Annotations interface
2014-01-22 19:04:42 +04:00
Andrey Breslav
ce1702d633
Replace a hack (Internals class) with a less-of-a-hack workaround
...
LockBasedLazyResolveStorageManager is put into the same package as LockBasedStorageManager
2014-01-20 23:01:19 +04:00
Andrey Breslav
6ce0b9b919
Annotations used instead of List<AnnotationDescriptor>
2014-01-20 16:17:54 +04:00
Andrey Breslav
8f56283771
Same storage manager used by lazy resolve session in AnalyzerFacadeForJVM and the rest of the components
2014-01-20 16:17:53 +04:00
Andrey Breslav
1af71c4dbe
Using common storage manager for all lazy services
2014-01-20 16:17:53 +04:00
Evgeny Gerashchenko
ae4c68830d
Importing root scope without members.
2014-01-16 22:11:55 +04:00
Evgeny Gerashchenko
7c059e2ae8
Removed assertion since it could appear in normal situation.
2014-01-16 20:34:10 +04:00