限定在指定文件中搜索
import javascriptfrom MethodCallExpr callwhere call.getFile().getBaseName() = "string-manipulations.js"select call
递归寻找使用location的表达式
import javascriptExpr useLocation(Expr call) {call.getAChildExpr().toString() = "location" and result = callor call = useLocation(result.getAChildExpr())}from MethodCallExpr call, int iwhere call.getFile().getBaseName() = "string-manipulations.js"select call, useLocation(call.getArgument(i))
