Alexander Udalov
965946d3ef
K2: report JVM backend errors in the same way in PSI as LT
...
Do not try to find PSI element, but always use the IR element offsets
instead. This greatly simplifies test data because we don't need to have
custom PSI- and LT- based diagnostic ranges in every test, and K1/K2
behavior also is mostly the same.
The exact offset ranges are not as important for backend diagnostics, so
it's better to have K2+PSI and K2+LT behaving the same.
2023-07-29 23:06:23 +00:00
Vladimir Dolzhenko
918a91dbdf
Escape special names with backticks in test data
...
#KT-51248
2022-02-10 21:20:47 +00:00
Dmitriy Novozhilov
73e6d42224
[Test] Update CLI tests according to new default language version
2021-01-28 13:19:25 +03:00
Dmitry Petrov
a86fe89aae
Include file name for package-level members in diagnostics
2017-05-26 13:58:46 +03:00
Dmitry Petrov
7979663e6c
Update testData for changed diagnostic messages
2017-05-26 13:58:46 +03:00
Pavel V. Talanov
a4c005fefd
Update existing test data depending on diagnostic parameter rendering
2016-02-26 14:45:11 +03:00
Dmitry Petrov
8ab55813fe
Dropping package facades:
...
- clashing JVM signature diagnostics should be reported in stable order
- drop tests for clashes vs package facades
- introduce box test for class named as old package facade
- fix some testData
2015-10-19 16:03:19 +03:00
Dmitry Petrov
e7fb7483c5
Drop package facades: update compiler tests.
2015-10-19 16:03:16 +03:00
Michael Bogdanov
01864801f3
Stable accessors names
2015-10-18 17:53:29 +03:00
Alexander Udalov
54dfd626ab
CLI: improve diagnostic message format
...
- render the whole line where the error/warning points to, if any, and another
line with '^', like other compilers do
- lowercase diagnostic severity
- decapitalize the message if it doesn't start with a proper name
2015-06-15 15:42:41 +03:00
Alexander Udalov
bca5eb083e
Don't report warnings when there are errors
...
All sane compilers do this
2015-06-15 15:42:40 +03:00
Alexander Udalov
2c0830b017
Change synthetic accessor method names to "access$..."
...
As per discussion in https://youtrack.jetbrains.com/issue/KT-6870
2015-02-27 20:30:51 +03:00
Nikolay Krasko
377209f0c3
Do not report CONFLICTING_JVM_DECLARATIONS on delegated origin element
2015-02-24 21:33:55 +03:00
Alexander Udalov
9434114c45
Make DescriptorRenderer escape names with dollars and other characters
...
#KT-5791 Fixed
2014-09-18 10:42:48 +04:00
Alexander Udalov
5a792ca11f
CLI: output relative paths in diagnostic messages
2014-08-13 11:10:41 +04:00
Andrey Breslav
64175d3996
Tests for some more cases of JVM signature clashes
2014-06-20 15:51:47 +04:00
Andrey Breslav
9ecbeeb100
Filter diagnostics in the CLI compiler, as well as in the IDE
2014-06-19 22:12:00 +04:00
Andrey Breslav
f229301a0f
More informative diagnostic messages for ACCIDENTAL_OVERRIDES and CONFLICTING_JVM_DECLARATIONS
...
#KT-1 In Progress
2014-06-19 22:10:55 +04:00
Andrey Breslav
27f76630e6
ACCIDENTAL_OVERRIDE diagnostics supported
...
#KT-1 In Progress
2014-06-19 22:10:55 +04:00
Andrey Breslav
449723e388
Repoting platform declarations clashes in CLI compiler for JVM
...
#KT-1 In Progress
2014-06-19 22:10:44 +04:00