Alexander Udalov
f62128bdcd
Fix protobuf extension API usages
...
"getExtension" returns default value when the requested extension is not
present, which is 0 for Int, which makes no sense for extensions like
methodImplClassName that are storing the number in the string table
2015-10-15 22:36:22 +03:00
Nikolay Krasko
4a361ebe60
Hide update plugin popup right after Intall was clicked to prevent multiple downloads
2015-10-15 19:37:22 +03:00
Michael Nedzelsky
114d19e6d9
use MainFunctionDetector in order to check for main function
2015-10-15 19:24:45 +03:00
Valentin Kipyatkov
e2c7ba7f40
Changed test data to not use deprecated api
2015-10-15 19:20:12 +03:00
Valentin Kipyatkov
36b3b16cb5
KT-5145 has been resolved but KT-9606 exists
2015-10-15 19:20:12 +03:00
Valentin Kipyatkov
a83539705e
Fixed completion handler for annotations (because the parser does not parse "@ xxx" as annotation anymore)
2015-10-15 19:20:12 +03:00
Valentin Kipyatkov
dc83d5cf04
Fixed test data
2015-10-15 19:20:12 +03:00
Valentin Kipyatkov
f67bd8c13f
Even more precise keyword completion for modifiers
2015-10-15 19:20:11 +03:00
Valentin Kipyatkov
15d507bf47
Removed obsolete comments
2015-10-15 19:20:11 +03:00
Valentin Kipyatkov
762900037e
Minor
2015-10-15 19:20:11 +03:00
Valentin Kipyatkov
26768ad34b
Renames
2015-10-15 19:20:11 +03:00
Valentin Kipyatkov
292ea7625c
Removed obosolete modifier "ref" from tests
2015-10-15 19:20:11 +03:00
Valentin Kipyatkov
dfcf459bf6
Minor
2015-10-15 19:20:11 +03:00
Valentin Kipyatkov
87cfccc2d9
Removed all places in parser where obsolete annotation syntax was allowed
2015-10-15 19:20:10 +03:00
Valentin Kipyatkov
875eaa52e3
Removing unused code
2015-10-15 19:20:10 +03:00
Valentin Kipyatkov
58a9b34276
Minor
2015-10-15 19:20:10 +03:00
Valentin Kipyatkov
78f60503e3
More correct keyword completion after @
2015-10-15 19:20:10 +03:00
Valentin Kipyatkov
e27528477f
KT-9478 No override completion for second parameter in primary constructor
...
#KT-9478 Fixed
#KT-9386 Fixed
2015-10-15 19:20:10 +03:00
Valentin Kipyatkov
434be3be21
Adapted keyword completion to changed parser + more precise completion for modifier keywords
2015-10-15 19:20:09 +03:00
Valentin Kipyatkov
f90ff31507
Adapting code completion to no annotations without "@"
2015-10-15 19:20:09 +03:00
Valentin Kipyatkov
ddcab047ce
Added CallType.ANNOTATION
2015-10-15 19:20:09 +03:00
Valentin Kipyatkov
0030fb7155
Removed unused code
2015-10-15 19:20:09 +03:00
Valentin Kipyatkov
9e694523f8
Fixing conversion from Java on copy/paste after changes in parser
2015-10-15 19:20:09 +03:00
Valentin Kipyatkov
b519a8af08
Fixing live template context detection after changes in parser
2015-10-15 19:20:09 +03:00
Valentin Kipyatkov
988c934e78
Fixed Pull Up to generate correct annotation syntax
2015-10-15 19:20:08 +03:00
Valentin Kipyatkov
c8135fe4f2
Removed obolete syntax for enum entries in test data
2015-10-15 19:20:08 +03:00
Valentin Kipyatkov
090ea37a32
Fixed test data to use only annotation syntax with @
2015-10-15 19:20:08 +03:00
Valentin Kipyatkov
487501a7a4
Fixed test data after changes in parser
2015-10-15 19:20:08 +03:00
Valentin Kipyatkov
d84020b1f3
Removed special support for parsing annotations for multi-declaration in for
2015-10-15 19:20:08 +03:00
Valentin Kipyatkov
98dc8f234e
Drop suppport for annotation syntax without '@' from parser
2015-10-15 19:20:07 +03:00
Ilya Gorbunov
d8ba854036
Fixes and cleanup in stdlib generator after builtin renames.
2015-10-15 18:35:11 +03:00
Ilya Gorbunov
a5ccecfc3d
StdLib generator: refactor deprecation DSL to be able to set deprecation level.
2015-10-15 18:30:19 +03:00
Alexander Udalov
66417ed329
Parse type arguments after callable reference as error
...
Is likely to be supported in the future
2015-10-15 18:25:42 +03:00
Alexander Udalov
32a9bddbf9
Increase ABI version after yet another change to binary format
2015-10-15 18:25:42 +03:00
Alexander Udalov
bf4a681589
Deduce receiver type of callable reference from LHS, not from descriptor
2015-10-15 18:25:42 +03:00
Alexander Udalov
2cf437c0e2
Fix type of callable reference to fake override
2015-10-15 18:25:41 +03:00
Alexander Udalov
9eb2e16b94
Support strings directly in JVM string table
...
For small strings it may be beneficial to store them as is in the proto at one
point instead of in a class annotation, because each annotation argument in the
classfile has a constant overhead which may be significant for small strings
2015-10-15 18:25:41 +03:00
Alexander Udalov
4c21142648
Store type parameter names sometimes instead of ids
...
This helps to reuse instances of types when TypeTable is enabled in cases when
a file or a class contains a lot of functions with type parameters with the
same name (like Maps.kt in the stdlib with "Map<K, V>")
2015-10-15 18:25:40 +03:00
Alexander Udalov
fb5d8de84b
Use type table in DescriptorSerializer, add switch to enable/disable, test
2015-10-15 18:25:40 +03:00
Alexander Udalov
82d2e623d3
Support a more optimized way of storing types in metadata
...
Together with almost every type now there's also an id which references a type
from a separate table. Storing such ids instead of Type messages will allow to
reduce the size of the metadata for files where types are used many times over
and over again. Currently only deserialization of such types is supported,
along with the former mechanism
2015-10-15 18:25:39 +03:00
Yan Zhulanow
bff6639e2d
Use stubs in checkParameterInFunctionType
2015-10-15 18:23:58 +03:00
Yan Zhulanow
d52f245cf7
Rename unary plus/minus in builtins and stdlib
2015-10-15 18:23:58 +03:00
Yan Zhulanow
f7ce0c2d20
Add new intrinsic methods: unaryPlus, unaryMinus
2015-10-15 18:23:58 +03:00
Ilya Gorbunov
2fba80168d
Remove usages of Delegates.lazy
2015-10-15 18:20:41 +03:00
Ilya Gorbunov
c4ef4758d2
Remove last two usages of Delegates.blockingLazy
2015-10-15 18:20:39 +03:00
Pavel V. Talanov
053e61a226
file facade index: Fix indexing files without top level members by mistake
2015-10-15 15:49:46 +03:00
Pavel V. Talanov
d9ed79e781
Add test for not generating file facade light class for empty file
2015-10-15 15:49:46 +03:00
Pavel V. Talanov
123c55b6db
IDELightClassGenerationSupport: fix not generating @JvmName annotation for file facade light classes
...
This was a minor inconsistency between compiler and ide light classes
2015-10-15 15:49:45 +03:00
Pavel V. Talanov
9e9f593a7f
Generate tests for ide light classes from the same test data as for compiler light classes
2015-10-15 15:49:45 +03:00
Pavel V. Talanov
35e56993d3
Rename: KotlinLightClassTest -> CompilerLightClassTest
...
In fact we have very different code in compiler and ide but only one test
2015-10-15 15:49:44 +03:00