Ian Lynagh
4765917d34
KE2: Simplify escaping a dollar in a string
2024-11-28 14:38:51 +00:00
Ian Lynagh
433f5d311b
KE2: Fix build
2024-11-28 12:36:20 +00:00
Tamás Vajk
0572e28adc
Merge pull request #18127 from tamasvajk/ke-null
...
KE2: Extract `null` literal
2024-11-28 09:11:05 +01:00
Chris Smowton
222b50cd5e
Merge pull request #18134 from smowton/smowton/ke2/external-class-extraction
...
KE2: basic external class extraction
2024-11-27 18:15:33 +00:00
Chris Smowton
fe4dc296f5
Don't query non-Kt source elements for locations etc
2024-11-27 18:04:40 +00:00
Chris Smowton
54961ddc88
Fixups
2024-11-27 17:54:45 +00:00
Ian Lynagh
d46cb189d8
Merge pull request #18135 from igfoo/igfoo/priv_unused
...
KE2: Remove some debugging functions, and mark some others as private
2024-11-27 17:43:52 +00:00
Chris Smowton
d27b5ed96e
Remove redundant comment
2024-11-27 17:12:22 +00:00
Chris Smowton
dd9d8720b0
Add doc comment
2024-11-27 17:12:21 +00:00
Chris Smowton
a3d78f1bad
Neaten symbol-to-location
2024-11-27 17:12:20 +00:00
Chris Smowton
cc0a112ea6
Generalise warnElement and errorElement
2024-11-27 17:12:19 +00:00
Chris Smowton
97ecd18678
Merge duplicate functions
2024-11-27 17:12:18 +00:00
Chris Smowton
e29d9ddacb
Restore location and name reporting for symbols
2024-11-27 17:12:17 +00:00
Chris Smowton
bfdb5e0b17
Add error function taking a throwable to LoggerBase
2024-11-27 17:12:16 +00:00
Chris Smowton
dfad8c8475
Don't bubble TODOs and other unchecked exceptions up to top level
2024-11-27 17:12:15 +00:00
Chris Smowton
1fc2a61f95
KE2: basic external class extraction
2024-11-27 17:12:12 +00:00
Tamas Vajk
def1916fd8
KE2: Extract null literal
2024-11-27 16:47:12 +01:00
Ian Lynagh
75f1c08ea2
KE2: Remove some debugging functions, and mark some others as private
2024-11-27 15:25:32 +00:00
Tamas Vajk
352e5d0c68
Remove unused code
2024-11-27 15:45:38 +01:00
Tamas Vajk
7d50eb5670
Fix review findings
2024-11-27 14:38:05 +01:00
Tamas Vajk
44e318546f
KE2: Extract more constructs for lambda expressions
2024-11-27 14:38:05 +01:00
Tamas Vajk
b42fbde130
KE2: Extract generated class for lambda expressions
2024-11-27 14:37:58 +01:00
Ian Lynagh
5245dad3c1
Merge pull request #18118 from igfoo/igfoo/diag
...
KE2: Put diagnostics from the analysis API into the database
2024-11-27 10:57:22 +00:00
Ian Lynagh
cc0eb9ab36
KE2: Put diagnostics from the analysis API into the database
2024-11-26 15:42:38 +00:00
Ian Lynagh
48168bf66c
Merge pull request #18096 from igfoo/igfoo/deprec
...
KE2: Don't actually deprecate WhenBranch.getCondition() yet
2024-11-26 14:48:27 +00:00
Ian Lynagh
2c595417f1
KE2: Don't actually deprecate WhenBranch.getCondition() yet
...
It makes a lot of noise in the CFG QLL, that we aren't fixing yet
2024-11-25 17:14:35 +00:00
Ian Lynagh
0b529c92bc
KE2: Remove some old debugging code
2024-11-25 17:04:27 +00:00
Ian Lynagh
86ddb3b6c1
Merge pull request #18081 from igfoo/igfoo/dbscheme_comments
...
KE2: Add more dbscheme comments
2024-11-25 12:06:18 +00:00
Tamás Vajk
0103711b47
Merge pull request #18058 from tamasvajk/ke2-when
...
KE2: Extract `when` expressions
2024-11-25 09:04:24 +01:00
Ian Lynagh
bb50bc0d85
Merge pull request #18075 from igfoo/igfoo/comp
...
KE2: Small refactoring
2024-11-22 15:34:28 +00:00
Ian Lynagh
37e950dcbf
Merge pull request #18076 from igfoo/igfoo/werror
...
KE2: Add warnings-as-error to build system, but commented out for now
2024-11-22 15:33:51 +00:00
Ian Lynagh
b816c1f396
Merge pull request #18077 from igfoo/igfoo/stmt
...
KE2: Reenable more code for ExprParent.stmt
2024-11-22 15:33:38 +00:00
Ian Lynagh
bafee5ec10
Merge pull request #18079 from igfoo/igfoo/dc
...
KE2: Remove some dead code
2024-11-22 15:33:20 +00:00
Tamas Vajk
3abd9a755e
Code quality improvements
2024-11-22 16:22:39 +01:00
Ian Lynagh
b3dbd73741
KE2: Remove some dead code
2024-11-22 14:10:47 +00:00
Ian Lynagh
19986f0307
KE2: Reenable more code for ExprParent.stmt
2024-11-22 14:04:02 +00:00
Ian Lynagh
cb8237fe67
KE2: Add warnings-as-error to build system, but commented out for now
...
Once we get closer to completion, it will be useful to have this on.
2024-11-22 13:42:31 +00:00
Ian Lynagh
d280a41062
KE2: Small refactoring
...
Avoids shadowing `trapWriterWriteExpr`, and removes the need to check
for an impossible case.
2024-11-22 13:39:55 +00:00
Ian Lynagh
05fa3328f0
Merge pull request #18064 from igfoo/igfoo/ke2_lang_ver
...
KE2: Use the right language version
2024-11-22 11:41:32 +00:00
Tamas Vajk
6c8cb103fc
Fix KE1
2024-11-22 11:37:09 +01:00
Tamas Vajk
052a243db6
Fix KE1 to extract the new when condition constructs
2024-11-22 10:16:41 +01:00
Ian Lynagh
6d990d47db
KE2: Use the right language version
...
With this, if I make the testsuite driver use 1.7, then the test code
sealed interface ReadResult
data class Number(val number: Int) : ReadResult
data class Text(val text: String) : ReadResult
data object EndOfFile : ReadResult
makes the extractor print
=== Diagnostics
--- Diagnostic:
WRONG_MODIFIER_TARGET
ERROR
Modifier 'data' is not applicable to 'standalone object'.
Location(startLine=5, startColumn=1, endLine=5, endColumn=4)
--- End diagnostics
2024-11-21 16:36:16 +00:00
Ian Lynagh
82c41316c6
KE2: Populate Kotlin type nullability and alias information
2024-11-21 16:00:01 +00:00
Ian Lynagh
7baeea6365
KE2: Use a more consistent TRAP label
2024-11-21 15:21:35 +00:00
Ian Lynagh
d17e3d521c
KE2: Start working on KtTypes
2024-11-21 15:21:34 +00:00
Ian Lynagh
eae40dbc03
KE2: Keep KE1 building with the kt-type changes
...
It won't work, but it'll still compile
2024-11-21 15:21:33 +00:00
Tamas Vajk
a2d90ed0c6
KE2: Extract when expressions
2024-11-21 16:02:20 +01:00
Ian Lynagh
8fe48d6dce
Merge commit 'e3990b7d04db2ca3ac99c029a0afc131e695db0b' into ke2
...
That is the repo ql as at the internal repo's
git merge-base origin/rc/3.16 origin/main
2024-11-20 17:40:00 +00:00
Chris Smowton
e89e0f5c4a
Merge pull request #18027 from igfoo/igfoo/fixbuild
...
KE2: Fix build
2024-11-20 16:48:36 +00:00
Tamás Vajk
1dbf54e9e7
Merge pull request #18028 from tamasvajk/ke2-if
...
KE2: Extract `if` expressions/statements
2024-11-19 18:40:45 +01:00