Mikhail Glukhikh
7724d060ff
[FIR] Don't compare SYNTAX diagnostics in light tree diagnostic test
2020-08-02 18:19:47 +03:00
Mikhail Glukhikh
0804c6a0f3
[FIR] Introduce TYPE_ARGUMENTS_NOT_ALLOWED & some other type errors
...
This commit introduces several different things, in particular:
- check type arguments in expressions
- new TypeArgumentList node to deal with diagnostic source
- ConeDiagnostic was moved to fir:cones
- ConeIntermediateDiagnostic to use in inference (?) without reporting
- detailed diagnostics on error type
2020-08-02 18:19:44 +03:00
Ilmir Usmanov
e5995f0c12
Update R8
...
Because old version throws assertion error if parameter's LVT record
does no span the whole function.
2020-07-29 00:01:10 +02:00
Alexander Udalov
db4cbe7103
IR: use IrFactory in SymbolTable
2020-07-28 12:05:23 +02:00
vldf
eadd3f00f2
[FIR] Add CanBeReplacedWithOperatorAssignmentChecker
2020-07-28 10:13:28 +03:00
Dmitry Petrov
89a0b3e944
Check class source in bytecode listing tests
2020-07-27 19:13:37 +03:00
Dmitriy Dolovov
3d9093583f
Metadata: 'non-stable parameter names' flag for callables
...
^KT-34602
2020-07-27 23:11:30 +07:00
Dmitry Petrov
0741781462
Compare inner class access flags in bytecode listing tests
2020-07-23 19:13:28 +03:00
Alexander Udalov
d3a34a8898
Psi2Ir: somewhat simplify Psi2IrTranslator API
...
Inline some methods only used once, deduplicate usages, rearrange
parameters, etc.
2020-07-22 22:38:21 +02:00
Yunir Salimzyanov
e5bca3ce29
Enable execution of muted on database tests marked as FLAKY (KTI-288)
...
It became possible to do, because all the muted flaky tests are now
synchronized with TeamCity and muted there too
2020-07-17 14:01:23 +03:00
vladislavf7@gmail.com
ab2128f55d
[FIR] extended checkers infrastructure refactoring
...
Removed strange way to enable Extended Checkers and add new way to do it
2020-07-16 15:11:32 +03:00
vladislavf7@gmail.com
38543ce2a3
[FIR] add way to configure session in Diagnostic Tests
2020-07-16 15:11:32 +03:00
Yunir Salimzyanov
63ba883a77
Refactoring of muteWithDatabase
...
- remove unused function RunNotifier.withMuteFailureListener
- inline some functions (isIgnoredInDatabaseWithLog, etc.)
- change declaration of mutedMessage
- change naming of AutoMute related functions
- extract to separate function isPresentedInDatabaseWithoutFailMarker
2020-07-16 13:16:41 +03:00
Zalim Bashorov
c552933459
[Test infra] Take into account transitive compatible targets while checking compatibility.
2020-07-14 14:14:12 +03:00
vladislavf7@gmail.com
be684c784f
[FIR] Introduce extended checkers for inspection-like diagnostics
2020-07-11 10:45:32 +03:00
Florian Kistner
346df07adc
203: Fix compilation for 203
2020-07-09 15:27:45 +02:00
simon.ogorodnik
6bc654ee49
[FIR] Add full compiler pipeline modularized test
...
Fixup: allow kotlin package
2020-07-07 21:47:24 +03:00
Nikolay Krasko
21fa2bf98c
Switch to 201 platform
2020-06-30 19:53:18 +03:00
Mads Ager
c3b5b21845
[JVM] Extend stepping tests with <clinit> stepping.
...
In addition, made the stepping information for constructor calls
consistent across JVM_IR and JVM. For JVM_IR that stepping behavior
is consistent for enum constructor calls in <clinit> for JVM it
is not.
2020-06-30 11:18:29 +02:00
Alexander Udalov
b94a4d9fc3
Render more information on inner classes in bytecode listing tests
2020-06-29 17:33:39 +02:00
Dmitriy Novozhilov
6a9504f26a
[FIR-TEST] Add coroutines diagnostic tests from old FE to FIR test suite
2020-06-29 12:19:02 +03:00
Yunir Salimzyanov
a382bef144
Extract classes and related functions of muteWithDatabase to separate module
2020-06-27 13:29:18 +03:00
Dmitriy Novozhilov
1dfccf1416
[FIR] Rename edge kinds of control flow graph
2020-06-19 15:53:10 +03:00
Dmitriy Novozhilov
4e2e05e689
[FIR-TEST] Check control flow graph in old frontend diagnostic tests
2020-06-19 15:53:05 +03:00
Dmitriy Novozhilov
b5cceb8995
[FIR-TEST] Add validation of control flow graph nodes order
2020-06-19 15:53:02 +03:00
Dmitriy Novozhilov
2f8e95dace
[FIR-TEST] Add validation for completed graph in diagnostic tests
2020-06-19 15:53:01 +03:00
Dmitriy Novozhilov
87859b0faa
[FIR] Introduce new algorithm for building CFG for declarations
2020-06-19 15:53:00 +03:00
Dmitriy Novozhilov
950bbfe3a5
[FIR] Add kind for back edges in CFG
2020-06-19 15:53:00 +03:00
Mikhail Bogdanov
8bc4407be0
Fix compilation
2020-06-19 12:54:19 +02:00
Mikhail Bogdanov
929bb0e8d1
Move common logic from CodegenTestCase to KotlinBaseTest
2020-06-19 11:57:36 +02:00
Georgy Bronnikov
c015463926
IR: remove field fake overrides
2020-06-17 20:02:26 +03:00
Mikhail Glukhikh
ab5cb13dae
Rename: DescriptorBasedIr -> ObsoleteDescriptorBasedAPI
2020-06-16 19:17:14 +03:00
Mikhail Glukhikh
cbbb497edf
Make descriptor-based API in ir:tree more granular
2020-06-16 19:17:12 +03:00
Mikhail Glukhikh
7a0f986823
[IR] Introduce & use DescriptorBasedIr OptIn
2020-06-16 19:17:03 +03:00
Dmitriy Novozhilov
1186d1affd
[FIR-TEST] Count all ConeKotlinErrorType as error types
2020-06-15 15:32:25 +03:00
Alexander Udalov
6e67e1e78d
Replace appendln with appendLine in project
2020-06-11 13:01:30 +02:00
Ilya Chernikov
5e33612238
Extract interface from CompilerMessageLocation to ease extension
...
The CompilerMessageLocation is an implicit part of the binary daemon
protocol so changing it breaks compatibility with older daemons.
This change allows to extend location for non-daemon uses without
breaking the binary protocol.
2020-06-05 21:58:27 +02:00
Mikhail Glukhikh
9ea69b4b3c
Introduce first version of FirJvmKotlinMangler & its parts
2020-06-02 18:47:50 +03:00
Mikhail Glukhikh
b40709649d
[FIR TEST] Add more detailed CFG inconsistency message
2020-06-02 16:12:27 +03:00
Yunir Salimzyanov
4e732b7ba2
Wrap parametrized tests with muteWithDatabase
...
Cause: should correctly run muted tests in database (KTI-216)
2020-05-30 22:50:34 +03:00
Yunir Salimzyanov
8d51b027ed
Add annotation to prevent test invocation twice
...
Cause: it helps to fix double inversion of muted non-flaky tests result
(KTI-216).
2020-05-30 22:50:34 +03:00
Yunir Salimzyanov
a256e75909
Run muted non-flaky tests and invert their result (KTI-216)
...
Cause: if mutedInDatabase test is failing then test result = success
else test result = failure (because now it should be unmuted)
2020-05-30 22:50:33 +03:00
Yunir Salimzyanov
cfb8763b33
Remove redundant Runner logic
2020-05-30 22:50:33 +03:00
Mads Ager
7d7b9262e7
[JVM] Port remaining line number tests to stepping infrastructure.
...
These line number tests only tested that a set of line numbers where
present in the java bytecode. Not that they would be hit in the
right order by the debugger. Moving them to stepping tests fixes that.
This exposes a couple of issues (in particular around try-catch-finally)
that should be fixed.
A number of tests are marked as failing now. Will investigate and
work on fixes next.
2020-05-29 15:07:49 +02:00
Dmitriy Novozhilov
f6dabafe34
[FIR] Make creating of resolve processors type safe
...
Also get rid of `CompilerMode` enum
2020-05-29 10:24:36 +03:00
Dmitriy Novozhilov
b4ce736814
[FIR] Move registration components out of initializers of FirSession
2020-05-29 10:24:26 +03:00
Dmitriy Novozhilov
41cdb61ef3
[FIR] Move all symbol providers to separate package
2020-05-29 10:20:57 +03:00
Mikhail Glukhikh
724101cdd2
[IR] Get rid of minor symbol.descriptor usages
2020-05-28 14:02:53 +03:00
Mads Ager
9fa1614903
[JVM] Port line number tests to stepping framework.
...
Allow specifying JVM and JVM_IR as well as shared expectations.
Add the method name to the step.
Discard steps in synthetic methods.
2020-05-27 07:28:47 +02:00
Vitaly
fe65045615
[JS BE] add es6 BE and relevant generated tests
2020-05-27 00:32:56 +03:00