MCPcopy Index your code
hub / github.com/clojure/clojure / preserveTag

Method preserveTag

src/jvm/clojure/lang/Compiler.java:7528–7535  ·  view source on GitHub ↗
(ISeq src, Object dst)

Source from the content-addressed store, hash-verified

7526}
7527
7528public static Object preserveTag(ISeq src, Object dst) {
7529 Symbol tag = tagOf(src);
7530 if (tag != null && dst instanceof IObj) {
7531 IPersistentMap meta = RT.meta(dst);
7532 return ((IObj) dst).withMeta((IPersistentMap) RT.assoc(meta, RT.TAG_KEY, tag));
7533 }
7534 return dst;
7535}
7536
7537private static volatile Var MACRO_CHECK = null;
7538private static volatile boolean MACRO_CHECK_LOADING = false;

Callers 2

macroexpand1Method · 0.95
analyzeSeqMethod · 0.95

Calls 4

tagOfMethod · 0.95
metaMethod · 0.95
assocMethod · 0.95
withMetaMethod · 0.65

Tested by

no test coverage detected