Dmitriy Novozhilov
7c57c4a2fb
[FIR] Add FirErrorProperty node
2020-06-15 15:32:24 +03:00
Alexander Udalov
6e67e1e78d
Replace appendln with appendLine in project
2020-06-11 13:01:30 +02:00
Jinseong Jeon
0d2552b0b6
FIR: record and serialize the modifier "fun" for functional interface
2020-06-08 09:42:32 +03:00
Dmitriy Novozhilov
73b738b7ff
[FIR] Replace resolved flag with resolve status enum for annotation calls
2020-06-05 10:33:59 +03:00
Denis Zharkov
7a22827af4
FIR: Unify all references to FIR nodes from non-parents
2020-06-03 10:43:37 +03:00
Denis Zharkov
4a4dce1766
FIR: Use more refined names instead of "safe"
...
^KT-38444 Fixed
2020-06-03 10:43:37 +03:00
Denis Zharkov
6507656496
FIR: Remove FirQualifiedAccessWithoutCallee.safe from generated code
...
^KT-38444 In Progress
2020-06-03 10:43:37 +03:00
Denis Zharkov
cb1c3f87f0
FIR: Prepare tree structure for safe-call refactoring
...
^KT-38444 In Progress
2020-06-03 10:43:37 +03:00
Dmitriy Novozhilov
6d37776267
[FIR] Rename FirClassImpl to FirRegularClassImpl
...
Also rename `buildClassImpl` to `buildRegularClass` and get rid
of intermediate `AbstractFirRegularClassBuilder`
2020-05-29 10:22:03 +03:00
Dmitriy Novozhilov
60fd505a9c
[FIR] Get rid of FirSealedClass node
...
Now list of inheritors is hold in attributes of `FirRegularClass`
2020-05-29 10:22:00 +03:00
simon.ogorodnik
dbc564e74e
[FIR2IR] Approximate types for lambdas before passing to serialization
2020-05-25 21:24:39 +03:00
simon.ogorodnik
b92194229c
[FIR] Add fir copy function generation
2020-05-25 21:24:38 +03:00
Dmitriy Novozhilov
74353d8bc9
[FIR] Introduce FirAnnotatedDeclaration
2020-05-24 18:04:44 +03:00
Pavel Kirpichenkov
0b33e9430b
[NI] Report unstable smart cast directly instead of using SmartCastManager
...
Fix compilation errors, revealed by this fix.
SmartCastManager is unnecessary for error reporting, intermediate diagnostics from the NI contain all required infromation.
When SmartCastManager is used it leads to missing unstable smart casts in case of expressions with captured types.
This happens, because data flow info is recorded for original expression without captured types, which is used as a key.
DataFlowValues created from receivers with captured types can't be used to retrieve that info.
^KT-39010 Fixed
2020-05-21 17:09:10 +03:00
Dmitriy Novozhilov
0544369503
[FIR] Add transformImports to FirFile
2020-05-20 10:40:57 +03:00
Mikhail Glukhikh
457fb09e3a
[FIR] Use tower to resolve delegated constructors, set dispatch receiver
2020-05-12 16:57:07 +03:00
Dmitriy Novozhilov
239837fd14
[FIR] Introduce FirDeclarationAttributes for FirDeclaration
2020-05-08 15:10:12 +03:00
Dmitriy Novozhilov
f9c37cfa6c
[FIR] Add transformAnnotationTypeRef to FirAnnotationCall
2020-05-08 15:09:59 +03:00
Dmitriy Novozhilov
bb645a7962
[FIR] Add transformSuperTypeRefs to FirClass
2020-05-08 15:09:58 +03:00
Dmitriy Novozhilov
bad4497970
[FIR] Add transformDeclarations to FirFile
2020-05-08 15:09:58 +03:00
Jinseong Jeon
7b01cf7b04
FIR: handle labeled super reference properly
2020-05-07 12:02:56 +03:00
Dmitriy Novozhilov
e515b1c823
[FIR] Add origin field to FirDeclaration
2020-05-07 09:42:20 +03:00
Mikhail Glukhikh
29114fe7b5
FIR: leave 'isSuspend' in functional & resolved type references only
2020-04-20 17:05:38 +03:00
Jinseong Jeon
88f81b9b71
FIR: record 'suspend' function modifier in type references
2020-04-20 17:05:28 +03:00
Dmitriy Novozhilov
276754260a
[FIR] Add replaceCalleeReference to all FirResolvable
...
Also improve tree generator: now it generates abstract overrides
for `replace` functions and correctly generates replace for fields
with overriden type
2020-04-17 12:37:28 +03:00
Dmitriy Novozhilov
fa1e5f9593
[FIR] Add transformations for delegated constructor call
2020-04-17 12:37:28 +03:00
Dmitriy Novozhilov
d718b596bc
[FIR] Add transform declaration and companion to regular class
2020-04-15 11:13:00 +03:00
Dmitriy Novozhilov
eef9b87047
[FIR] List for unresolved effects to resolved contract node
2020-04-15 11:12:57 +03:00
Dmitriy Novozhilov
a89e0123c7
[FIR] Add fir node for raw contract description
2020-04-15 11:12:56 +03:00
simon.ogorodnik
6d3dccab83
[FIR] Fix obsolete transforms & visit consistency
2020-04-14 20:05:47 +03:00
simon.ogorodnik
7c56209cef
[FIR] Introduce type parameter ref in generated tree
2020-04-13 20:26:15 +03:00
Mikhail Glukhikh
cd5a4900e6
[FIR] Support dispatch & extension receiver in component calls
2020-04-09 15:22:56 +03:00
Dmitriy Novozhilov
16b5b2dcef
[FIR] Add symbol to FirAnonymousInitializer
2020-04-03 10:08:24 +03:00
Dmitriy Novozhilov
1177a56815
[FIR] Don't resolve annotations twice
2020-04-03 10:08:20 +03:00
Dmitriy Novozhilov
28738971bc
[FIR] Add transformAnnotations for fir nodes
2020-04-03 10:08:19 +03:00
Dmitriy Novozhilov
74d86d82c6
[FIR] Add control flow graph to FirAnonymousInitializer
2020-04-03 10:08:16 +03:00
Dmitriy Novozhilov
8d3ee4f304
[FIR] Add cfg reference to classes
2020-04-03 10:08:16 +03:00
Alexander Udalov
b6fdc96994
Reverse dependency 'psi' <-> 'frontend.common'
...
Move ParseUtils to 'psi', and ImportPath to 'frontend.common'.
Now 'psi' depends on 'frontend.common', and that allows to remove
dependency of 'fir:tree:tree-generator' on 'psi', allowing the former to
compile in parallel with the old frontend code.
2020-03-28 21:30:07 +01:00
Mikhail Glukhikh
b27152f903
Replace some FIR syntax errors with more proper diagnostics
2020-03-27 16:46:59 +03:00
Dmitriy Novozhilov
1a3fef5fa1
[FIR] Switch names of FirDiagnostic and ConeDiagnostic
2020-03-25 11:35:43 +03:00
Mikhail Glukhikh
50a9313a5e
[FIR] Support some approximation of effective visibility
2020-03-19 16:56:47 +03:00
Dmitriy Novozhilov
f85022532d
[FIR] Rename FirArraySetCall to FirAugmentedArraySetCall
2020-03-18 11:31:54 +03:00
Dmitriy Novozhilov
2b986194fb
[FIR] Add desugaring of array assignments and resolve of it
...
#KT-37516 Fixed
2020-03-18 11:31:53 +03:00
Dmitriy Novozhilov
37aa234bb7
[FIR] Fix transform of subject of when expressions with subject variable
2020-03-16 17:04:28 +03:00
Mikhail Glukhikh
91d51b93e1
[FIR] Introduce FirArgumentList node
2020-03-11 22:08:58 +03:00
Alexander Udalov
795d6ab407
Migrate UseExperimental->OptIn in project sources
2020-03-10 12:07:14 +01:00
Dmitriy Novozhilov
770dfb69ba
[FIR] Analyze all statements in block except last one in independent mode
...
Some broken tests will be fixed in next commit
#KT-37176 Fixed
2020-03-05 16:48:47 +03:00
Dmitriy Novozhilov
4454a0681b
[FIR] Get rid of copying function call in process of completion
2020-03-02 09:49:28 +03:00
Dmitriy Novozhilov
cda8177502
[FIR] Add transformDelegate for FirProperty
2020-03-02 09:07:23 +03:00
Mikhail Glukhikh
50abb07245
[FIR] Record & use type arguments of FirQualifiedAccessExpression
2020-02-28 15:29:00 +03:00