|
115 | 115 |
|
116 | 116 | ;; ---------------------------------------------------------------------------- |
117 | 117 |
|
118 | | -(declare hash-datom equiv-datom seq-datom val-at-datom nth-datom assoc-datom) |
| 118 | +;; using defn instead of declare because of http://dev.clojure.org/jira/browse/CLJS-1871 |
| 119 | +(defn- ^:declared hash-datom [d]) |
| 120 | +(defn- ^:declared equiv-datom [a b]) |
| 121 | +(defn- ^:declared seq-datom [d]) |
| 122 | +(defn- ^:declared nth-datom ([d i]) ([d i nf])) |
| 123 | +(defn- ^:declared assoc-datom [d k v]) |
| 124 | +(defn- ^:declared val-at-datom [d k nf]) |
119 | 125 |
|
120 | 126 | (deftype Datom [e a v tx added] |
121 | 127 | #?@(:cljs |
|
368 | 374 |
|
369 | 375 | ;; ---------------------------------------------------------------------------- |
370 | 376 |
|
371 | | -(declare hash-db hash-fdb equiv-db empty-db pr-db resolve-datom validate-attr components->pattern indexing?) |
| 377 | +;; using defn instead of declare because of http://dev.clojure.org/jira/browse/CLJS-1871 |
| 378 | +(defn- ^:declared hash-db [db]) |
| 379 | +(defn- ^:declared hash-fdb [db]) |
| 380 | +(defn- ^:declared equiv-db [a b]) |
| 381 | +(defn- ^:declared empty-db [db]) |
| 382 | +#?(:cljs (defn ^:declared pr-db [db w opts])) |
| 383 | +(defn- ^:declared resolve-datom [db e a v t]) |
| 384 | +(defn- ^:declared validate-attr [attr at]) |
| 385 | +(defn- ^:declared components->pattern [db index cs]) |
| 386 | +(defn ^:declared indexing? [db attr]) |
372 | 387 |
|
373 | 388 | (defrecord-updatable DB [schema eavt aevt avet max-eid max-tx rschema hash] |
374 | 389 | #?@(:cljs |
|
681 | 696 |
|
682 | 697 | ;; ---------------------------------------------------------------------------- |
683 | 698 |
|
684 | | -(declare entid-strict entid-some ref?) |
| 699 | +;; using defn instead of declare because of http://dev.clojure.org/jira/browse/CLJS-1871 |
| 700 | +(defn ^:declared entid-strict [db eid]) |
| 701 | +(defn ^:declared entid-some [db eid]) |
| 702 | +(defn ^:declared ref? [db attr]) |
685 | 703 |
|
686 | 704 | (defn- resolve-datom [db e a v t] |
687 | 705 | (when a (validate-attr a (list 'resolve-datom 'db e a v t))) |
|
985 | 1003 | ~expr |
986 | 1004 | (cond-let ~@rest))))) |
987 | 1005 |
|
988 | | -(declare transact-tx-data) |
| 1006 | +;; using defn instead of declare because of http://dev.clojure.org/jira/browse/CLJS-1871 |
| 1007 | +(defn ^:declared transact-tx-data [report es]) |
989 | 1008 |
|
990 | 1009 | (defn retry-with-tempid [report es tempid upserted-eid] |
991 | 1010 | (if (contains? (:tempids report) tempid) |
|
0 commit comments