Tamas Vajk
|
a3992950b1
|
Add delegated property call tests
|
2022-05-10 19:51:22 +01:00 |
|
Tamas Vajk
|
126d780f34
|
Add delegated property declaration test
|
2022-05-10 19:51:22 +01:00 |
|
Tony Torralba
|
a6326b69dc
|
Update java/ql/lib/config/semmlecode.dbscheme
Apply suggestion by @igfoo
Co-authored-by: Ian Lynagh <igfoo@github.com>
|
2022-05-10 19:51:22 +01:00 |
|
Tony Torralba
|
64531dd717
|
Fix AST representation of WhenExpr and WhenBranch
|
2022-05-10 19:51:22 +01:00 |
|
Tony Torralba
|
4b22e1a378
|
Extract WhenBranch as Stmt
|
2022-05-10 19:51:22 +01:00 |
|
Tony Torralba
|
10ab11cdf7
|
Handle WhenBranch CFG properly
|
2022-05-10 19:51:22 +01:00 |
|
Tony Torralba
|
5ea3228768
|
Fix test expectations
|
2022-05-10 19:51:22 +01:00 |
|
Tony Torralba
|
9735423c79
|
Fix WhenExpr flow
|
2022-05-10 19:51:22 +01:00 |
|
Tony Torralba
|
5979981199
|
Add test for missing WhenExpr flow
|
2022-05-10 19:51:22 +01:00 |
|
Tamas Vajk
|
d4701d72d9
|
Add DelegatedProperty QL class and use it in tests
|
2022-05-10 19:51:22 +01:00 |
|
Tamas Vajk
|
0ba2daf31a
|
Adjust extraction to reuse KtProperty* relations
|
2022-05-10 19:51:22 +01:00 |
|
Tamas Vajk
|
78b4c9403d
|
Add lazy local delegated property test case
|
2022-05-10 19:51:22 +01:00 |
|
Tamas Vajk
|
f8343b8cc7
|
Extract local delegated properties
|
2022-05-10 19:51:22 +01:00 |
|
Chris Smowton
|
48b99cf55c
|
Don't try to attribute comments to the implicit this parameter.
|
2022-05-10 19:51:22 +01:00 |
|
Chris Smowton
|
6abb2529f5
|
Extract a clinit method for Kotlin files
|
2022-05-10 19:51:22 +01:00 |
|
Tamas Vajk
|
2d0bb43efe
|
Do not extract local function containers as anonymous classes
|
2022-05-10 19:51:22 +01:00 |
|
Tamas Vajk
|
9597932112
|
Add test that calls a local function multiple times
|
2022-05-10 19:51:22 +01:00 |
|
Ian Lynagh
|
ea74803053
|
Kotlin: Add a comment
|
2022-05-10 19:51:22 +01:00 |
|
Ian Lynagh
|
44375fe1ae
|
Kotlin: Add LoggerBase to the list of logging classes
|
2022-05-10 19:51:22 +01:00 |
|
Ian Lynagh
|
79c2ce7f1c
|
Kotlin: Add tags to log messages (WARN, INFO, etc)
Makes it easier to see what's going on
|
2022-05-10 19:51:21 +01:00 |
|
Ian Lynagh
|
84c7b2310a
|
Kotlin: Catch all Throwables
We want to try to continue even if we hit a stack overflow or an
assertion error.
|
2022-05-10 19:51:21 +01:00 |
|
Chris Smowton
|
8f929e2498
|
Avoid recursion through extractFunctionLaterIfExternalFileMember -> useType -> useDeclarationParent
|
2022-05-10 19:51:21 +01:00 |
|
Chris Smowton
|
1835022c84
|
Extract external file declarations to individual trap files
|
2022-05-10 19:51:21 +01:00 |
|
Ian Lynagh
|
2551bb58da
|
Kotlin: Add a test of recursive instantiations
This used to cause a stack overflow
|
2022-05-10 19:51:21 +01:00 |
|
Ian Lynagh
|
0d79dfc412
|
Kotlin: Add a test of recursive instantiations
This used to cause a stack overflow
|
2022-05-10 19:51:21 +01:00 |
|
Ian Lynagh
|
90f7cc1223
|
Kotlin: Move anonymousTypeMapping and locallyVisibleFunctionLabelMapping
They're now in LabelManager, so they are shared between extractors.
|
2022-05-10 19:51:21 +01:00 |
|
Ian Lynagh
|
aad9e5601a
|
Kotlin: Keep our own stack of extractor contexts
For now we only use its length, but in the future we might use this to
give more informatino about the cause of warnings.
|
2022-05-10 19:51:21 +01:00 |
|
Ian Lynagh
|
9c2df20117
|
Kotlin: When verbose, make with log when it starts and finishes doing something
|
2022-05-10 19:51:21 +01:00 |
|
Ian Lynagh
|
8b56302644
|
Kotlin: Add a concept of 'verbosity'
|
2022-05-10 19:51:21 +01:00 |
|
Ian Lynagh
|
cffcff93a8
|
Kotlin: Add a log message
|
2022-05-10 19:51:21 +01:00 |
|
Tamas Vajk
|
57d4d8e2a8
|
Code quality improvements
|
2022-05-10 19:51:21 +01:00 |
|
Tamas Vajk
|
7b2b40cc86
|
Fix type access extraction of nested generic constructor references
|
2022-05-10 19:51:21 +01:00 |
|
Tamas Vajk
|
46af85621a
|
Add nested generic constructor reference test
|
2022-05-10 19:51:21 +01:00 |
|
Tamas Vajk
|
5e1ebb2545
|
Fix generic constructor reference extraction
|
2022-05-10 19:51:21 +01:00 |
|
Tamas Vajk
|
415fcaf605
|
Add generic constructor reference test
|
2022-05-10 19:51:21 +01:00 |
|
Tamas Vajk
|
b228ac4814
|
Code quality improvements
|
2022-05-10 19:51:21 +01:00 |
|
Tamas Vajk
|
91409534e2
|
Unify parameter order in type access extraction functions
|
2022-05-10 19:51:21 +01:00 |
|
Tamas Vajk
|
a8f595c50a
|
Refactor type access extraction
|
2022-05-10 19:51:21 +01:00 |
|
Tamas Vajk
|
92e59a3ae1
|
Add SAM conversion tests
|
2022-05-10 19:51:21 +01:00 |
|
Tamas Vajk
|
eebfe56c95
|
Extract more type access expressions
|
2022-05-10 19:51:21 +01:00 |
|
Tamas Vajk
|
f730aa12b6
|
Refactor type access extraction for function references and lambdas
|
2022-05-10 19:51:21 +01:00 |
|
Tamas Vajk
|
a70ade224f
|
Fix (generic) type access extraction for lambdas
|
2022-05-10 19:51:21 +01:00 |
|
Ian Lynagh
|
a8c94c500e
|
Kotlin: Simplify PrimitiveTypeInfo
Removes a load of argument-passing
|
2022-05-10 19:51:20 +01:00 |
|
Ian Lynagh
|
0bf1ff9f2f
|
Kotlin: Comments and tweaks in Label
|
2022-05-10 19:51:20 +01:00 |
|
Ian Lynagh
|
2c5dc42db4
|
Kotlin: Comments and tweaks to TrapWriter.
|
2022-05-10 19:51:20 +01:00 |
|
Ian Lynagh
|
b1ebcdd524
|
Kotlin: Add some warnings
|
2022-05-10 19:51:20 +01:00 |
|
Tamas Vajk
|
4af12e7c9d
|
Change array.get calls to array indexing in FunctionN.invoke body
|
2022-05-10 19:51:20 +01:00 |
|
Tony Torralba
|
2da98148dc
|
Add NotNullExpr flow
|
2022-05-10 19:51:20 +01:00 |
|
Tony Torralba
|
cf5152baa2
|
Add test for NotNullExpr flow
|
2022-05-10 19:51:20 +01:00 |
|
Tamas Vajk
|
4e18974889
|
Fix type access expression extraction for function/property references
|
2022-05-10 19:51:20 +01:00 |
|