File tree Expand file tree Collapse file tree 9 files changed +18
-24
lines changed Expand file tree Collapse file tree 9 files changed +18
-24
lines changed Original file line number Diff line number Diff line change 1
- {:lint-as {manifold.utils/definterface+ clojure.core/definterface
2
- manifold.utils/deftype+ clojure.core/deftype
3
- manifold.utils/defrecord+ clojure.core/defrecord
4
- manifold.utils/defprotocol+ clojure.core/defprotocol}
1
+ {:lint-as {manifold.utils/definterface+ clojure.core/definterface}
5
2
6
3
:hooks {:analyze-call
7
4
{manifold.stream.core/def-source manifold.hooks/def-sink-or-source
Original file line number Diff line number Diff line change 5
5
[manifold
6
6
[stream :as s]
7
7
[deferred :as d]
8
- [utils :refer [deftype+ definterface+]]])
8
+ [utils :refer [definterface+]]]
9
+ [potemkin.types :refer [deftype+]])
9
10
(:import
10
11
[java.util.concurrent
11
12
ConcurrentHashMap]
Original file line number Diff line number Diff line change 8
8
[riddley.compiler :as compiler]
9
9
[manifold
10
10
[executor :as ex]
11
- [utils :as utils :refer [defprotocol+ deftype+ definterface+]]
11
+ [utils :as utils :refer [definterface+]]
12
12
[time :as time]
13
13
[debug :as debug]]
14
14
[clojure.set :as set]
15
- [potemkin.types :refer [def-abstract-type reify+]])
15
+ [potemkin.types :refer [def-abstract-type reify+ defprotocol+ deftype+ ]])
16
16
(:import
17
17
[java.util
18
18
LinkedList]
1388
1388
(extend-protocol Deferrable
1389
1389
1390
1390
CompletionStage
1391
- (to-deferred [f ]
1391
+ (to-deferred [cs ]
1392
1392
(let [d (deferred )]
1393
- (.handle ^CompletionStage f
1393
+ (.handle ^CompletionStage cs
1394
1394
(reify BiFunction
1395
1395
(apply [_ val err]
1396
1396
(if (nil? err)
Original file line number Diff line number Diff line change 6
6
(:require
7
7
[clojure.core :as clj]
8
8
[manifold.deferred :as d]
9
- [manifold.utils :as utils :refer [deftype+]]
9
+ [potemkin.types :refer [deftype+]]
10
+ [manifold.utils :as utils]
10
11
[manifold.time :as time]
11
12
[manifold.stream
12
13
[core :as core]
Original file line number Diff line number Diff line change 1
1
(ns manifold.stream.core
2
2
{:no-doc true }
3
- (:require [manifold.utils :refer [defprotocol+ definterface+ deftype+]]))
3
+ (:require [manifold.utils :refer [definterface+]]
4
+ [potemkin.types :refer [deftype+ defprotocol+]]))
4
5
5
6
(defprotocol+ Sinkable
6
7
(to-sink [_] " Provides a conversion mechanism to Manifold sinks." ))
Original file line number Diff line number Diff line change 4
4
[clojure.tools.logging :as log]
5
5
[manifold
6
6
[deferred :as d]
7
- [utils :as utils :refer [deftype+ defrecord+] ]
7
+ [utils :as utils]
8
8
[executor :as ex]]
9
9
[manifold.stream
10
10
[graph :as g]
11
11
[core :as s]]
12
- [manifold.time :as time])
12
+ [manifold.time :as time]
13
+ [potemkin.types :refer [deftype+ defrecord+]])
13
14
(:import
14
15
[java.util
15
16
LinkedList
Original file line number Diff line number Diff line change 2
2
{:no-doc true }
3
3
(:require
4
4
[manifold.deferred :as d]
5
- [manifold.utils :as utils :refer [deftype+]]
5
+ [manifold.utils :as utils]
6
+ [potemkin.types :refer [deftype+]]
6
7
[manifold.stream.core :as s]
7
8
[manifold.executor :as ex]
8
9
[clojure.tools.logging :as log])
Original file line number Diff line number Diff line change 5
5
[clojure.tools.logging :as log]
6
6
[manifold.executor :as ex]
7
7
[clojure.string :as str]
8
- [manifold.utils :refer [definterface+ defprotocol+]])
8
+ [manifold.utils :refer [definterface+]]
9
+ [potemkin.types :refer [defprotocol+]])
9
10
(:import
10
11
[java.util
11
12
Calendar
Original file line number Diff line number Diff line change 130
130
131
131
; ;;
132
132
133
- (defmacro defprotocol+ [name & body]
134
- `(potemkin.types/defprotocol+ ~name ~@body))
135
-
136
- (defmacro deftype+ [name & body]
137
- `(potemkin.types/deftype+ ~name ~@body))
138
-
139
- (defmacro defrecord+ [name & body]
140
- `(potemkin.types/defrecord+ ~name ~@body))
141
-
142
133
(defmacro definterface+ [name & body]
143
134
(when-not (resolve name)
144
135
`(definterface ~name ~@body)))
You can’t perform that action at this time.
0 commit comments