Nikolay Krasko
8c5109d819
Generate descriptor for trait constructor. Exception is thrown otherwise...
...
EA-38416, EA-65189, EA-60850
2015-03-16 20:16:25 +03:00
Stanislav Erokhin
639003b8a8
Allowed function parameter without type declaration in the parser
2015-03-12 17:11:52 +03:00
Stanislav Erokhin
a235110d44
Fixed function expression recovery
2015-03-12 17:11:45 +03:00
Stanislav Erokhin
983e1bc932
Added function as expression support to parser
2015-03-12 17:11:44 +03:00
Stanislav Erokhin
a8536fef9b
Mute syntax error when function name was omitted
2015-03-12 17:11:44 +03:00
Nikolay Krasko
dcd29cb65d
Revert "Generate descriptor for trait constructor. Exception is thrown otherwise (EA-38416)"
...
This reverts commit 6ba120bba8 .
2015-03-12 14:18:22 +03:00
Nikolay Krasko
6ba120bba8
Generate descriptor for trait constructor. Exception is thrown otherwise (EA-38416)
2015-03-12 12:59:22 +03:00
Denis Zharkov
3ba94d7352
Parsing: secondary constructors
2015-03-11 17:45:22 +03:00
Denis Zharkov
a55e8911ea
Drop parsing of enum initializers using `this'
...
#KT-6626 Fixed
2015-03-11 17:45:22 +03:00
Alexander Udalov
6e45c6f17c
Support class literals (A::class)
2015-03-11 16:42:41 +03:00
Pavel V. Talanov
59f192ef90
Replace 'class object' with 'default object' in renderers and test data
...
Includes changes to decompiled text
Old syntax is used in builtins and project code for now
2015-03-06 19:36:54 +03:00
Dmitry Jemerov
28ed30bcb3
change KDoc parsing so that space after parameter/section name is not included in tag content; support @property tag in KDocFinder
2015-03-06 16:13:11 +01:00
Alexey Sedunov
2684ce20d4
Parser: Do not produce qualified expressions without receiver in package directives. Add assertion on JetQualifiedExpression
...
#KT-6907 Fixed
2015-03-06 14:37:22 +03:00
Pavel V. Talanov
2b51e4f2d4
Add 'default' keyword
...
Parser: allow objects that are marked as default to have no name
2015-03-06 12:41:38 +03:00
Pavel V. Talanov
0ca2f3f336
Minor: prevent rare case when soft keyword was parsed as enum entry
2015-03-06 12:41:34 +03:00
Pavel V. Talanov
f1942b1a74
Parser: do not produce CLASS_OBJECT element
...
"class object" is parsed into OBJECT_DECLARATION instead
2015-02-16 15:38:30 +03:00
Pavel V. Talanov
2e837c6586
Parser: allow names to be specified for class objects
2015-02-16 15:38:28 +03:00
Dmitry Jemerov
084470e840
fix NPE in KDocLinkParser
2015-02-09 18:21:50 +01:00
Dmitry Jemerov
70cf3e9c60
KDoc link parsing rewrite.
...
Support qualified names immediately after tag (@see or @param). Detect whether a tag is followed by a reference immediately while lexing, remove TEXT_OR_LINK token type. Remove duplicate nested KDocLink nodes from the PSI structure.
2015-02-06 16:33:55 +01:00
Dmitry Jemerov
56d85c2033
don't parse links which aren't Kotlin identifiers and have an explicitly specified destination
2015-02-05 16:27:37 +01:00
Dmitry Jemerov
3253754395
code review
2015-02-04 17:26:48 +01:00
Dmitry Jemerov
40f459306a
parse qualified names in kdoc
2015-02-04 17:26:46 +01:00
Dmitry Jemerov
223882d292
correctly parse tag in the beginning of doc comment
2015-02-04 17:26:46 +01:00
Dmitry Jemerov
c3a496b9a2
introduce the concept of sections
2015-01-20 18:00:17 +01:00
Dmitry Jemerov
f3763bc2b5
some initial PSI for KDoc; changed syntax of links (Markdown style single brackets instead of Wiki style double brackets)
2015-01-20 18:00:09 +01:00
Alexander Udalov
21b2fa2509
Update copyrights to 2015
2015-01-13 01:15:18 +03:00
Nikolay Krasko
da6e1890bd
Don't lookahead too far when looking for '.' between type and parameters and for comma in function literal parameters
2014-12-15 20:20:09 +03:00
Nikolay Krasko
421bb57f50
Fix parser performance: don't do the additional lookahead when looking for the comma in parameters
2014-12-15 20:20:08 +03:00
Nikolay Krasko
3677881e18
Change parser error for when (KT-6420)
...
#KT-6420 Fixed
2014-12-08 20:42:48 +03:00
Andrey Breslav
e09b624f05
dynamic is not a keyword on the left-hand side of callable references
2014-12-01 20:43:42 +03:00
Andrey Breslav
f58b30706e
Parsing dynamic in extension receiver position
2014-12-01 20:43:40 +03:00
Andrey Breslav
28b466d069
Parsing dynamic types
2014-12-01 20:43:37 +03:00
Valentin Kipyatkov
00fdd52b35
Fixed doc-comments only binder to bind doc-comment always
2014-10-31 21:08:52 +03:00
Valentin Kipyatkov
43e5112c21
Added parameter with default value to test
2014-10-31 21:07:52 +03:00
Valentin Kipyatkov
2200908367
Doc comments for parameters and property accessors
2014-10-31 21:07:52 +03:00
Valentin Kipyatkov
d6dc2531b0
Removed binding of comment after package directive
2014-10-31 21:07:51 +03:00
Valentin Kipyatkov
b811a6cab4
Corrected comments binding so that comments before local functions and classes are bound to them
2014-10-31 21:07:50 +03:00
Valentin Kipyatkov
377df47e29
Fixed doc-comment not attached to the first declaration with no package directive + incorrect placement of comments for enum entry
2014-10-31 21:07:50 +03:00
Valentin Kipyatkov
9dd4b5598e
Comments binding (not complete yet)
2014-10-31 21:07:44 +03:00
Pavel V. Talanov
951ce827a6
Parser: allow function types as receiver type for function
2014-10-30 16:47:03 +03:00
Andrey Breslav
70db76b219
Typo fixed in a diagnostic message
2014-10-29 18:43:48 +03:00
Valentin Kipyatkov
304c826b47
Fixed KT-6128 Code completion does not work inside function literal if it's dependant on declarations below
...
#KT-6128 Fixed
2014-10-24 15:14:26 +04:00
Alexander Udalov
102f0d3470
Regenerate .txt testData
...
Add newline to EOF, trim trailing spaces
2014-10-21 00:16:08 +04:00
Andrey Breslav
2bf6db003a
Error message corrected: packages can't be nested any more
2014-10-15 12:22:35 +04:00
Andrey Breslav
391b57077b
KT-5976 Parser recovery is poor on object with parameters
...
#KT-5976 Fixed
2014-10-15 12:22:35 +04:00
Andrey Breslav
cc68ed894b
"type" is not a keyword anymore ("typealias" reserved instead)
2014-10-13 15:41:13 +04:00
Andrey Breslav
8eb57f5a75
Parser recovers on platform types notation:
...
- Foo!
- Array<(out) Foo>!
- (Mutable)List<Foo>!
2014-10-13 15:38:18 +04:00
Zalim Bashorov
486b6be32c
Minor in Parser: "attribute" -> "annotation"
2014-09-10 22:39:11 +04:00
Zalim Bashorov
d71c3d6166
Minor in Parser: moved some annotation tests.
2014-09-10 22:39:11 +04:00
Zalim Bashorov
fb97b1df93
Minor in Parser: drop obsolete code.
2014-09-10 22:39:11 +04:00