// query.cm — Backward-compatible wrapper delegating to analyze.cm.

var analyze = use('analyze')

var query = {}

query.find_this = function(idx, scope) {
  return analyze.find_refs(idx, "this", scope)
}

query.intrinsic = function(idx, name) {
  return analyze.find_intrinsic(idx, name)
}

query.find_decl = function(idx, name, kind) {
  return analyze.find_decls(idx, name, kind)
}

return query
