Move 'snippet' queries to 'snippets' folders

This commit is contained in:
Arthur Baars
2019-07-25 15:38:25 +02:00
parent 30860daac4
commit bdce7d07c1
151 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
/**
* @name Conditional expressions
* @description Finds conditional expressions of the form '... if ... else ...'
* where the classes of the sub-expressions differ
* @tags conditional
* expression
* ternary
*/
import python
from IfExp e, ClassObject cls1, ClassObject cls2
where
e.getBody().refersTo(_, cls1, _) and e.getOrelse().refersTo(_, cls2, _) and
cls1 != cls2
select e