File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 10
10
* This helps clients avoiding the suggestion/insertion of candidates which are redundant
11
11
* e.g. ` + ` is already interned, so is ` Thread `
12
12
* same for ` :refer ` s and ` :rename ` s
13
+ * Fix a bug the newly introduced .cljc detection.
13
14
14
15
## 3.8.0
15
16
Original file line number Diff line number Diff line change 2
2
(:refer-clojure :exclude [macroexpand-1])
3
3
(:require
4
4
[clojure.java.io :as io]
5
+ [clojure.string :as string]
5
6
[clojure.tools.analyzer :as ana]
6
7
[clojure.tools.analyzer.ast :refer [nodes]]
7
8
[clojure.tools.analyzer.jvm :as aj]
8
- [clojure.tools.analyzer.jvm.utils :as ajutils]
9
9
[clojure.tools.namespace.parse :refer [read-ns-decl]]
10
10
[clojure.tools.reader :as reader]
11
11
[clojure.walk :as walk]
57
57
ast )
58
58
59
59
(defn- ns-on-cp? [ns ]
60
- (io/resource (ajutils/ns->relpath ns )))
60
+ (boolean (or (io/resource (-> ns str (string/replace \. \/) (string/replace \- \_) (str " .clj" )))
61
+ (io/resource (-> ns str (string/replace \. \/) (string/replace \- \_) (str " .cljc" ))))))
61
62
62
63
(defn- shadow-unresolvable-symbol-handler [symbol-ns symbol-name symbol-ast]
63
64
{:op :const
You can’t perform that action at this time.
0 commit comments