Skip to content

Commit 3ec81ca

Browse files
anmonteiroswannodette
authored andcommitted
CLJS-2130: Self-host: Add :fn-invoke-direct to public API docstrings
1 parent 9dc57c6 commit 3ec81ca

File tree

1 file changed

+76
-64
lines changed

1 file changed

+76
-64
lines changed

src/main/cljs/cljs/js.cljs

+76-64
Original file line numberDiff line numberDiff line change
@@ -630,21 +630,24 @@
630630
opts (map)
631631
compilation options.
632632
633-
:eval - eval function to invoke, see *eval-fn*
634-
:load - library resolution function, see *load-fn*
635-
:source-map - set to true to generate inline source map information
636-
:def-emits-var - sets whether def (and derived) forms return either a Var
637-
(if set to true) or the def init value (if false). Default
638-
is false.
639-
:static-fns - employ static dispatch to specific function arities in
640-
emitted JavaScript, as opposed to making use of the
641-
`call` construct. Default is false.
642-
:ns - optional, the namespace in which to evaluate the source.
643-
:verbose - optional, emit details from compiler activity. Defaults to
644-
false.
645-
:context - optional, sets the context for the source. Possible values
646-
are `:expr`, `:statement` and `:return`. Defaults to
647-
`:expr`.
633+
:eval - eval function to invoke, see *eval-fn*
634+
:load - library resolution function, see *load-fn*
635+
:source-map - set to true to generate inline source map information
636+
:def-emits-var - sets whether def (and derived) forms return either a Var
637+
(if set to true) or the def init value (if false).
638+
Defaults to false.
639+
:static-fns - employ static dispatch to specific function arities in
640+
emitted JavaScript, as opposed to making use of the
641+
`call` construct. Defaults to false.
642+
:fn-invoke-direct - if `true`, does not generate `.call(null...)` calls for
643+
unknown functions, but instead direct invokes via
644+
`f(a0,a1...)`. Defaults to `false`.
645+
:ns - optional, the namespace in which to evaluate the source.
646+
:verbose - optional, emit details from compiler activity. Defaults to
647+
false.
648+
:context - optional, sets the context for the source. Possible values
649+
are `:expr`, `:statement` and `:return`. Defaults to
650+
`:expr`.
648651
649652
cb (function)
650653
callback, will be invoked with a map. If successful the map will contain
@@ -720,21 +723,24 @@
720723
opts (map)
721724
compilation options.
722725
723-
:eval - eval function to invoke, see *eval-fn*
724-
:load - library resolution function, see *load-fn*
725-
:source-map - set to true to generate inline source map information
726-
:def-emits-var - sets whether def (and derived) forms return either a Var
727-
(if set to true) or the def init value (if false). Default
728-
is false.
729-
:static-fns - employ static dispatch to specific function arities in
730-
emitted JavaScript, as opposed to making use of the
731-
`call` construct. Default is false.
732-
:ns - optional, the namespace in which to evaluate the source.
733-
:verbose - optional, emit details from compiler activity. Defaults to
734-
false.
735-
:context - optional, sets the context for the source. Possible values
736-
are `:expr`, `:statement` and `:return`. Defaults to
737-
`:expr`.
726+
:eval - eval function to invoke, see *eval-fn*
727+
:load - library resolution function, see *load-fn*
728+
:source-map - set to true to generate inline source map information
729+
:def-emits-var - sets whether def (and derived) forms return either a Var
730+
(if set to true) or the def init value (if false). Default
731+
is false.
732+
:static-fns - employ static dispatch to specific function arities in
733+
emitted JavaScript, as opposed to making use of the
734+
`call` construct. Defaults to false.
735+
:fn-invoke-direct - if `true`, does not generate `.call(null...)` calls for
736+
unknown functions, but instead direct invokes via
737+
`f(a0,a1...)`. Defaults to `false`.
738+
:ns - optional, the namespace in which to evaluate the source.
739+
:verbose - optional, emit details from compiler activity. Defaults to
740+
false.
741+
:context - optional, sets the context for the source. Possible values
742+
are `:expr`, `:statement` and `:return`. Defaults to
743+
`:expr`.
738744
739745
cb (function)
740746
callback, will be invoked with a map. If successful the map will contain
@@ -826,21 +832,24 @@
826832
opts (map)
827833
compilation options.
828834
829-
:eval - eval function to invoke, see *eval-fn*
830-
:load - library resolution function, see *load-fn*
831-
:source-map - set to true to generate inline source map information
832-
:def-emits-var - sets whether def (and derived) forms return either a Var
833-
(if set to true) or the def init value (if false). Default
834-
is false.
835-
:static-fns - employ static dispatch to specific function arities in
836-
emitted JavaScript, as opposed to making use of the
837-
`call` construct. Default is false.
838-
:ns - optional, the namespace in which to evaluate the source.
839-
:verbose - optional, emit details from compiler activity. Defaults to
840-
false.
841-
:context - optional, sets the context for the source. Possible values
842-
are `:expr`, `:statement` and `:return`. Defaults to
843-
`:expr`.
835+
:eval - eval function to invoke, see *eval-fn*
836+
:load - library resolution function, see *load-fn*
837+
:source-map - set to true to generate inline source map information
838+
:def-emits-var - sets whether def (and derived) forms return either a Var
839+
(if set to true) or the def init value (if false). Default
840+
is false.
841+
:static-fns - employ static dispatch to specific function arities in
842+
emitted JavaScript, as opposed to making use of the
843+
`call` construct. Defaults to false.
844+
:fn-invoke-direct - if `true`, does not generate `.call(null...)` calls for
845+
unknown functions, but instead direct invokes via
846+
`f(a0,a1...)`. Defaults to `false`.
847+
:ns - optional, the namespace in which to evaluate the source.
848+
:verbose - optional, emit details from compiler activity. Defaults to
849+
false.
850+
:context - optional, sets the context for the source. Possible values
851+
are `:expr`, `:statement` and `:return`. Defaults to
852+
`:expr`.
844853
845854
cb (function)
846855
callback, will be invoked with a map. If successful the map will contain
@@ -967,25 +976,28 @@
967976
opts (map)
968977
compilation options.
969978
970-
:eval - eval function to invoke, see *eval-fn*
971-
:load - library resolution function, see *load-fn*
972-
:source-map - set to true to generate inline source map information
973-
:cache-source - optional, a function to run side-effects with the
974-
compilation result prior to actual evalution. This function
975-
takes two arguments, the first is the eval map, the source
976-
will be under :source. The second argument is a callback of
977-
one argument. If an error occurs an :error key should be
978-
supplied.
979-
:def-emits-var - sets whether def (and derived) forms return either a Var
980-
(if set to true) or the def init value (if false). Default
981-
is false.
982-
:static-fns - employ static dispatch to specific function arities in
983-
emitted JavaScript, as opposed to making use of the
984-
`call` construct. Default is false.
985-
:ns - optional, the namespace in which to evaluate the source.
986-
:verbose - optional, emit details from compiler activity. Defaults to
987-
false.
988-
:context - optional, sets the context for the source. Possible values
979+
:eval - eval function to invoke, see *eval-fn*
980+
:load - library resolution function, see *load-fn*
981+
:source-map - set to true to generate inline source map information
982+
:cache-source - optional, a function to run side-effects with the
983+
compilation result prior to actual evalution. This function
984+
takes two arguments, the first is the eval map, the source
985+
will be under :source. The second argument is a callback of
986+
one argument. If an error occurs an :error key should be
987+
supplied.
988+
:def-emits-var - sets whether def (and derived) forms return either a Var
989+
(if set to true) or the def init value (if false). Default
990+
is false.
991+
:static-fns - employ static dispatch to specific function arities in
992+
emitted JavaScript, as opposed to making use of the
993+
`call` construct. Defaults to false.
994+
:fn-invoke-direct - if `true`, does not generate `.call(null...)` calls for
995+
unknown functions, but instead direct invokes via
996+
`f(a0,a1...)`. Defaults to `false`.
997+
:ns - optional, the namespace in which to evaluate the source.
998+
:verbose - optional, emit details from compiler activity. Defaults to
999+
false.
1000+
:context - optional, sets the context for the source. Possible values
9891001
are `:expr`, `:statement` and `:return`. Defaults to
9901002
`:expr`.
9911003

0 commit comments

Comments
 (0)