victor.petukhov
fe072e3366
Fix the lack of the handling of whitespace characters in the KDoc lexer
...
Affected characters are U+000B, U+000C, U+000D, U+0085, U+2028, U+2029
This problem reproduces with JFlex since 1.5.0: http://jflex.de/changelog.html#jflex-1.5.0-jan-21-2014
2018-11-06 11:18:58 +03:00
victor.petukhov
9e6ac6cb2a
Fix the lack of the handling of whitespace characters in the Kotlin lexer
...
Affected characters are U+000B, U+000C, U+000D, U+0085, U+2028, U+2029
This problem reproduces with JFlex since 1.5.0: http://jflex.de/changelog.html#jflex-1.5.0-jan-21-2014
2018-11-06 11:18:38 +03:00
Toshiaki Kameyama
4a82f50e79
Convert concatenation to template: omit braces when converting 'this' #KT-7555 Fixed
2018-11-06 11:03:08 +03:00
Toshiaki Kameyama
7a9effe30d
Redundant companion reference: Fix false positive in enum entry #KT-27861 Fixed
2018-11-06 11:02:35 +03:00
Karen Schwane
d88fd8aa6f
KT-20357 Add samples for maxBy and minBy
2018-11-04 22:34:16 +03:00
Alexey Tsvetkov
aae24c993d
Revert usage of lazy task API
...
We want to be compatible with Gradle 4.0+
where the API is not available.
Use eager task creation API for now.
Lazy API support should be added later with
proper Gradle versions checks.
2018-11-03 00:59:27 +03:00
Ivan Gavrilovic
c42b3b8ff8
Do not resolve configuration for scripting Gradle plugin
...
Avoid resolving kotlinScriptDef configurations during
configuration phase. Also, make task creation lazy.
#KT-27160 fixed
2018-11-03 00:59:27 +03:00
Mikhail Glukhikh
22fa9b6b92
AndroidViewConstructorFix: add white space after annotation explicitly
...
This fixes Android formatter-related issue
#KT-27945 Fixed
2018-11-02 19:51:44 +03:00
Mikhail Glukhikh
279203e2e1
FIR visitor generator: fix copyright generator to pass conformance test
2018-11-02 19:44:56 +03:00
Mikhail Glukhikh
631adde3f5
Regenerate FIR resolve tests
2018-11-02 19:44:56 +03:00
Mikhail Glukhikh
2bc063b230
FIR: implement default star importing scope
2018-11-02 19:44:56 +03:00
Mikhail Glukhikh
284b21b2a6
Get rid of descriptors, resolved classifiers, + some cleanup
2018-11-02 19:44:55 +03:00
Mikhail Glukhikh
8035be07e2
FIR: built-in resolve, preliminary version #KT-24091 Fixed
2018-11-02 19:44:55 +03:00
Mikhail Glukhikh
ce113fbe2e
FIR: introduce class & type alias symbols
2018-11-02 19:44:55 +03:00
Mikhail Glukhikh
093a236e34
FIR resolve: support star imports, enum entries
2018-11-02 19:44:55 +03:00
Mikhail Glukhikh
929573e0d5
FIR type transformer: minor optimization: do not create empty scopes
2018-11-02 19:44:54 +03:00
Mikhail Glukhikh
dfa8c32c5d
FIR: minor cone types refactoring
2018-11-02 19:44:54 +03:00
Mikhail Glukhikh
4d48c40832
FIR tree & builder: support expect / actual
2018-11-02 19:44:54 +03:00
Mikhail Glukhikh
d16303342e
FIR: do not allow to resolve to type parameters in supertype position
2018-11-02 19:44:54 +03:00
Mikhail Glukhikh
e46074dee6
FIR: simplify type parameter scopes
2018-11-02 19:44:54 +03:00
Mikhail Glukhikh
9aaec1efda
FIR: resolve function type parameters
2018-11-02 19:44:54 +03:00
Simon Ogorodnik
25ae12fe07
FIR: implement early type alias expansion
2018-11-02 19:44:54 +03:00
Mikhail Glukhikh
d15fb1963b
FIR: introduce symbols + type parameter resolve #KT-24064 Fixed
2018-11-02 19:44:53 +03:00
Mikhail Glukhikh
3495f09ac4
Fix visiting of resolved FIR nodes
2018-11-02 19:44:53 +03:00
Mikhail Glukhikh
a99578c354
FIR: handle unresolved modality as questionable
2018-11-02 19:44:53 +03:00
Mikhail Glukhikh
737ec37486
FIR visibility rendering: unknown -> public with question
2018-11-02 19:44:53 +03:00
Mikhail Glukhikh
b83d921445
FIR: add type alias descriptors
2018-11-02 19:44:53 +03:00
Simon Ogorodnik
bc9175c4e8
FIR: Refactor nested scope, fix super-type resolving jump context
...
#KT-24017 Fixed
2018-11-02 19:44:52 +03:00
Mikhail Glukhikh
f82ad6ac20
FIR: support type alias resolve
2018-11-02 19:44:52 +03:00
Mikhail Glukhikh
d5463193fd
FIR: introduce classifier scopes #KT-24022 Fixed
2018-11-02 19:44:52 +03:00
Mikhail Glukhikh
1ba498b021
FIR: transform types inside functions & properties
2018-11-02 19:44:52 +03:00
Mikhail Glukhikh
be35b904f2
FIR: replace UnambiguousFqName with ClassId
2018-11-02 19:44:52 +03:00
Mikhail Glukhikh
6c8a326e15
FIR: split transformer into three (imports / types / descriptors)
2018-11-02 19:44:52 +03:00
Simon Ogorodnik
8933c9035b
FIR: introduce FIR importing scopes #KT-24096 Fixed
2018-11-02 19:44:51 +03:00
Mikhail Glukhikh
e6cd07b46e
FIR: support tailrec & external modifiers
2018-11-02 19:44:51 +03:00
Mikhail Glukhikh
fa80f40e74
FIR: no nullability in error type
2018-11-02 19:44:51 +03:00
Simon Ogorodnik
3e7b9c4e27
FIR: introduce type resolvers #KT-24019 Fixed
2018-11-02 19:44:51 +03:00
Simon Ogorodnik
aa20d88dff
FIR: Create ad-hoc fir by name provider
2018-11-02 19:44:51 +03:00
Simon Ogorodnik
9976eff03a
FIR: Add components storage to FirSession
2018-11-02 19:44:50 +03:00
Simon Ogorodnik
7e95eee9f1
FIR: Introduce new classifier descriptors aka 'cones'
2018-11-02 19:44:50 +03:00
Simon Ogorodnik
ce7456c93d
FIR: Introduce new kotlin types aka 'cones' #KT-24063 Fixed
2018-11-02 19:44:50 +03:00
Simon Ogorodnik
12acbaaa21
FIR: Add module for new types aka 'cones' (of fir tree)
...
Start of KT-24063
2018-11-02 19:44:50 +03:00
Mikhail Glukhikh
9daa84c5a9
FIR: add resolve module
2018-11-02 19:44:50 +03:00
Simon Ogorodnik
3e06f426d0
Raw FIR: support a bunch of new elements + some fixes
...
Support: calls, constructor calls, annotation calls, arguments
Support: enums, primary constructors, const modifier
Support: inner modifier, qualified types
Add: some base transformed types
Fix: acceptChildren etc.
Progress: #KT-24013
2018-11-02 19:44:49 +03:00
Simon Ogorodnik
2ddf52123a
Create FIR transformer generator #KT-24062 Fixed
2018-11-02 19:44:49 +03:00
Simon Ogorodnik
fda49736ee
Regenerate visitors
2018-11-02 19:44:49 +03:00
Simon Ogorodnik
f33c16a7db
Fix various inconsistencies in visitor generator output
2018-11-02 19:44:49 +03:00
Mikhail Glukhikh
2c626d6c5d
Implement raw FIR builder (initial version)
...
All necessary FIR tree implementations were created
FIR renderer & three first builder tests were added
#KT-24013 Fixed
2018-11-02 19:44:49 +03:00
Simon Ogorodnik
1a80477c1c
Create visitor generator for FIR (KT-24062 in progress)
2018-11-02 19:44:47 +03:00
Mikhail Glukhikh
4755a494f1
Create basic version of FIR interfaces (mostly declarations)
...
#KT-24014 Fixed
2018-11-02 19:44:47 +03:00