CrossClj

1.10.339 docs

SourceDocs



RECENT
    VARS
    *inputs*
    *lexical-renames*
    *recompiled*
    *source-map-data*
    array-map-threshold
    base-types
    build-affecting-options
    cached-core
    checking-types?
    cljs-files-in
    cljs-reserved-file-names
    comma-sep
    compile-file
    compile-file*
    compile-root
    compiled-by-string
    distinct-constants?
    distinct-keys?
    emit
    emit*
    emit-apply-to
    emit-arguments-to-array
    emit-cached-core
    emit-comment
    emit-constant
    emit-constants-table
    emit-constants-table-to-file
    emit-externs
    emit-fn-method
    emit-fn-params
    emit-inferred-externs-to-file
    emit-let
    emit-source
    emit-source-map
    emit-str
    emit-variadic-fn-method
    emit-wrap
    emitln
    emits
    emits-keyword
    emits-symbol
    es5>=
    escape-char
    escape-string
    falsey-constant?
    find-ns-starts-with
    find-root-sources
    find-source
    fn-self-name
    get-define
    get-first-ns-segment
    hash-scope
    js-reserved
    load-libs
    macro-ns?
    mapped-types
    munge
    munge-param-return
    munge-reserved
    protocol-prefix
    rename-to-js
    requires-compilation?
    resolve-type
    resolve-types
    safe-test?
    shadow-depth
    truthy-constant?
    url-path
    valid-define-value?
    with-core-cljs
    wrap-in-double-quotes

    « Index of all namespaces of this project

    Private
    (build-affecting-options opts)
    (cached-core ns ext opts)
    (cljs-files-in dir)
    Return a sequence of all .cljs and .cljc files in the given directory.
    
    Private
    (comma-sep xs)
    (compile-file src)(compile-file src dest)(compile-file src dest opts)
    Compiles src to a file of the same name, but with a .js extension,
    in the src file's directory.
    
    With dest argument, write file to provided location. If the dest
    argument is a file outside the source tree, missing parent
    directories will be created. The src file will only be compiled if
    the dest file has an older modification time.
    
    Both src and dest may be either a String or a File.
    
    Returns a map containing {:ns .. :provides .. :requires .. :file ..}.
    If the file was not compiled returns only {:file ...}
    (compile-file* src dest)(compile-file* src dest opts)
    (compile-root src-dir)(compile-root src-dir target-dir)(compile-root src-dir target-dir opts)
    Looks recursively in src-dir for .cljs files and compiles them to
    .js files. If target-dir is provided, output will go into this
    directory mirroring the source directory structure. Returns a list
    of maps containing information about each file which was compiled
    in dependency order.
    (compiled-by-string)(compiled-by-string opts)
    (distinct-constants? items)
    (distinct-keys? keys)
    (emit-apply-to {:keys [name params env]})
    (emit-arguments-to-array startslice)
    Emit code that copies function arguments into an array starting at an index.
    Returns name of var holding the array.
    (emit-cached-core src dest cached opts)
    (emit-comment doc jsdoc)(emit-comment env doc jsdoc)
    Emit a nicely formatted comment string.
    
    (emit-constants-table table)
    (emit-constants-table-to-file table dest)
    (emit-externs externs)(emit-externs prefix externs top-level known-externs)
    (emit-fn-method {:keys [type name variadic params expr env recurs max-fixed-arity]})
    (emit-fn-params params)
    (emit-inferred-externs-to-file externs dest)
    (emit-let {:keys [bindings expr env]} is-loop)
    (emit-source src dest ext opts)
    (emit-source-map src dest sm-data opts)
    (emit-str expr)
    (emit-variadic-fn-method {:keys [type name variadic params expr env recurs max-fixed-arity], :as f})
    macro
    (emit-wrap env & body)
    (emitln & xs)
    (emits & xs)
    (emits-keyword kw)
    (emits-symbol sym)
    Private
    (escape-char c)
    Private
    (escape-string s)
    (falsey-constant? {:keys [op form const-expr]})
    (find-ns-starts-with needle)
    (find-root-sources src-dir)
    (find-source file)
    (fn-self-name {:keys [name info], :as name-var})
    (get-define mname jsdoc)
    (get-first-ns-segment ns)
    Gets the part up to the first . of a namespace.
    Returns the empty string for nil.
    Returns the entire string if no . in namespace
    (load-libs libs seen reloads deps ns-name)
    (macro-ns? ns ext opts)
    (munge s)(munge s reserved)
    (munge-param-return env line)
    (munge-reserved reserved)
    (protocol-prefix psym)
    (rename-to-js file-str)
    Change the file extension from .cljs to .js. Takes a File or a
    String. Always returns a String.
    (requires-compilation? src dest)(requires-compilation? src dest opts)
    Return true if the src file requires compilation.
    
    (resolve-type env t)
    (resolve-types env ts)
    (safe-test? env e)
    (shadow-depth s)
    (truthy-constant? {:keys [op form const-expr]})
    (valid-define-value? x)
    (with-core-cljs)(with-core-cljs opts)(with-core-cljs opts body)
    Ensure that core.cljs has been loaded.
    
    Private
    (wrap-in-double-quotes x)