add getter for static initializer blocks · ByteDecoder/codeql@ffd51e7 · GitHub
Skip to content

Commit ffd51e7

Browse files
committed
add getter for static initializer blocks
1 parent 9585481 commit ffd51e7

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

javascript/ql/lib/semmle/javascript/Classes.qll

Lines changed: 5 additions & 0 deletions

javascript/ql/test/library-tests/TypeScript/Types/tests.expected

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,3 +670,6 @@ unionIndex
670670
| { stillMyUnion: true; } | 1 | MyUnion \| { yetAnotherType: true; } |
671671
| { stillMyUnion: true; } | 1 | { myUnion: true; } \| { stillMyUnion: true; } |
672672
| { yetAnotherType: true; } | 2 | MyUnion \| { yetAnotherType: true; } |
673+
getAStaticInitializerBlock
674+
| tst.ts:179:3:192:3 | class F ... \\n } | tst.ts:185:5:187:5 | static ... ;\\n } |
675+
| tst.ts:179:3:192:3 | class F ... \\n } | tst.ts:188:5:190:5 | static ... ;\\n } |

javascript/ql/test/library-tests/TypeScript/Types/tests.ql

Lines changed: 4 additions & 0 deletions

0 commit comments

Comments
 (0)