Mikhail Glukhikh
f06a79d534
KNPE fixed in data class checker together with some ID warnings #KT-9296 Fixed #EA-73584 Fixed
2015-09-25 17:46:33 +03:00
Mikhail Glukhikh
bd7ccc0138
Annotation on a function literal cannot be written to binary if it has FUNCTION target and the literal is inlined
2015-09-25 17:46:30 +03:00
Alexey Sedunov
5af4101f7d
Resource Bundles: Implement references on Kotlin string literals
...
#KT-6946 In Progress
2015-09-25 17:17:59 +03:00
Denis Zharkov
3f6cadf9b7
Change FUNCTION_EXPRESSION_WITH_NAME severity to ERROR
...
Also drop deprecation related parts and get rid of usages of this `feature` within testData
2015-09-25 08:29:26 +03:00
Denis Zharkov
60ebc689ad
Drop diagnostic reported on lambda's return type
...
Because it's not allowed syntactically anymore.
Also adjust related methods within JetFunctionNotStubbed
2015-09-25 08:29:26 +03:00
Denis Zharkov
c6377a0664
Drop everything related to lambda syntax deprecation
2015-09-25 08:29:26 +03:00
Denis Zharkov
5f69789636
Stop parsing lambdas with deprecated syntax
2015-09-25 08:29:25 +03:00
Stanislav Erokhin
cdcf9f30b7
Minor. Fix compilation.
2015-09-24 14:07:51 +03:00
Stanislav Erokhin
fc9aa87a05
Report diagnostic on import with explicit import class if class was imported earlier.
2015-09-24 14:07:43 +03:00
Stanislav Erokhin
6c1738e11a
Minor. Small refactoring of AllUnderImportsScope
2015-09-24 13:53:56 +03:00
Stanislav Erokhin
85895bec62
Improved error reporting, when we trying import invisible descriptor.
2015-09-24 13:53:56 +03:00
Stanislav Erokhin
1360f3cd43
Fix visibility checker for import.
2015-09-24 13:53:55 +03:00
Yan Zhulanow
bc727a170b
Add 'operator' keyword
2015-09-23 21:25:51 +03:00
Michael Nedzelsky
2c952dcc22
Revert "add isKotlinSourceElement method to Source interface in order to recognize kotlin source elements during compilation"
...
This reverts commit c342f6870a .
2015-09-23 17:45:47 +03:00
Mikhail Glukhikh
c4fb6d48c5
Object literals are now classes and expressions simultaneously for the purposes of annotation target checking
2015-09-23 16:47:07 +03:00
Mikhail Glukhikh
dd4601fd08
Function literal is now expression and function simultaneously for purposes of annotation target checking
2015-09-23 16:47:04 +03:00
Mikhail Glukhikh
997e9a7dd7
Multi declaration is now a separate target in KotlinTarget
2015-09-23 16:46:44 +03:00
Mikhail Glukhikh
789f351f6f
data modifier is now inapplicable to enum classes, annotations, objects and interfaces #KT-8302 Fixed
2015-09-23 16:33:11 +03:00
Mikhail Glukhikh
315a304c8e
New modifier checking strategy: only one error but any number of warnings, a warning can never shadow an error
2015-09-23 16:33:08 +03:00
Mikhail Glukhikh
55c7df8b8d
Deprecations: data class should now have at least one primary constructor parameter, parameters should be val / var and not vararg.
2015-09-23 16:33:05 +03:00
Mikhail Glukhikh
3d6253c27f
abstract + data and sealed + data are also deprecated
2015-09-23 16:33:02 +03:00
Mikhail Glukhikh
038d955c23
Data classes cannot have class supertypes, a new test, relevant test fixes
2015-09-23 16:33:00 +03:00
Mikhail Glukhikh
58110cd0d1
open + data and inner + data are deprecated, a new test, relevant test fixes
2015-09-23 16:32:57 +03:00
Mikhail Glukhikh
731fdecf06
private / protected / internal modifiers are deprecated in interfaces, relevant tests changed
2015-09-23 16:32:54 +03:00
Denis Zharkov
098f5462eb
Drop inlineOptions and fix forgotten usages
2015-09-23 12:18:12 +03:00
Denis Zharkov
ba6671edb4
Minor. Drop unused constant JetTokens.ANNOTATION_MODIFIERS_KEYWORDS
2015-09-23 08:20:57 +03:00
Denis Zharkov
afd4e644a3
Report warning on usages of non-const vals in places where constants expected
2015-09-23 08:20:57 +03:00
Denis Zharkov
b2b76d16d0
Add checks for const modifier applicability
...
1. Must be initialized in-place
2. Can not be open/abstract
3. Can not be an override
4. Can not be delegated
5. Initializer must be a compile-time constant
6. No getters
7. `const` is not applicable to vars or locals
8. `const val` should be whether top-level property or object member
2015-09-23 08:20:56 +03:00
Denis Zharkov
bde58d6eb8
Introduce interface method: VariableDescriptor.isConst
...
And several default implementations
Also take it into account in renderer
2015-09-23 08:20:56 +03:00
Denis Zharkov
02b64ce1ed
Parse const as soft modifier keyword
2015-09-23 08:20:56 +03:00
Denis Zharkov
4a3ac474ca
Minor. Rename resolveValueArguments -> resolveAnnotationValueArguments
2015-09-23 08:20:56 +03:00
Denis Zharkov
bafb6cc2f7
Minor. Extract common code in ModifierChecker
2015-09-23 08:20:56 +03:00
Michael Nedzelsky
c342f6870a
add isKotlinSourceElement method to Source interface in order to recognize kotlin source elements during compilation
2015-09-23 07:49:21 +03:00
Dmitry Jemerov
4ca434da54
remove support for 'trait' keyword
2015-09-22 15:00:24 +02:00
Mikhail Glukhikh
86833c1a74
Migration to new backing field syntax
2015-09-22 10:15:52 +03:00
Mikhail Glukhikh
d337283b52
"field": more accurate creation of synthetic field
2015-09-21 15:48:14 +03:00
Mikhail Glukhikh
831df27cac
"field": refactoring, isBackingFieldReference, referencedProperty
2015-09-21 15:48:11 +03:00
Mikhail Glukhikh
ad302fcfba
"field": control of accessor parameter name shadowing, test
2015-09-21 15:48:08 +03:00
Mikhail Glukhikh
4f3e3610a0
NPE fixed inside three implementations of LexicalScope.printStructure
2015-09-21 15:48:06 +03:00
Mikhail Glukhikh
c24156ae84
"field": backing field usage deprecated warning, relevant diagnostics tests changed
2015-09-21 15:48:03 +03:00
Mikhail Glukhikh
a1e3471d92
"field": deprecated warnings introduced, compiler tests migrated to the new syntax
2015-09-21 15:48:00 +03:00
Mikhail Glukhikh
9939f96c09
"field" reassignment: fix and test
2015-09-21 15:47:52 +03:00
Mikhail Glukhikh
9f640b00d9
"field": synthetic variable creation in accessors, codegen changed accordingly, a set of tests, relevant code fix (j2k)
2015-09-21 15:47:49 +03:00
Dmitry Kovanikov
cb1756f5fa
[cli-repl] Error render and XML-interop with IDE console
2015-09-21 14:41:17 +03:00
Ilya Gorbunov
b179b861a6
Drop old array constructor function names from compile time constant recognizable expressions.
2015-09-19 05:05:04 +03:00
Stanislav Erokhin
68389d34e4
Optimized task creation for local functions and variables
2015-09-18 21:01:22 +03:00
Stanislav Erokhin
d3df04036e
Minor. Removed parameter bindingTrace from CallableDescriptorCollector
2015-09-18 21:01:22 +03:00
Stanislav Erokhin
0d12499039
Minor. Changed JetScope to LexicalScope in TaskPrioritizerContext
2015-09-18 21:01:21 +03:00
Stanislav Erokhin
2373cc3ede
Minor. Small refactoring in QualifiedExpressionResolver
2015-09-18 21:00:22 +03:00
Stanislav Erokhin
b51edf9004
Fixed completion for package, import directive and user type.
2015-09-18 21:00:22 +03:00