fix docs for syntax-local-name, syntax-local-infer-name, and 'inferred-name
svn: r15904
This commit is contained in:
parent
a65ad71fad
commit
d92ac1c2fd
|
@ -519,11 +519,11 @@ expanded.
|
||||||
within a @scheme[module] form, or if it is not a run-time expression,
|
within a @scheme[module] form, or if it is not a run-time expression,
|
||||||
then the @exnraise[exn:fail:contract]. }
|
then the @exnraise[exn:fail:contract]. }
|
||||||
|
|
||||||
@defproc[(syntax-local-name) (or/c symbol? #f)]{
|
@defproc[(syntax-local-name) any/c]{
|
||||||
|
|
||||||
Returns an inferred name for the expression position being
|
Returns an inferred name for the expression position being
|
||||||
transformed, or @scheme[#f] if no such name is available. See also
|
transformed, or @scheme[#f] if no such name is available. A name is
|
||||||
@secref["infernames"].
|
normally a symbol or an identifier. See also @secref["infernames"].
|
||||||
|
|
||||||
@transform-time[]}
|
@transform-time[]}
|
||||||
|
|
||||||
|
|
|
@ -853,7 +853,8 @@ the procedure bound to @scheme[my-f] will have the inferred name
|
||||||
When an @indexed-scheme['inferred-name] property is attached to a
|
When an @indexed-scheme['inferred-name] property is attached to a
|
||||||
syntax object for an expression (see @secref["stxprops"]), the
|
syntax object for an expression (see @secref["stxprops"]), the
|
||||||
property value is used for naming the expression, and it overrides any
|
property value is used for naming the expression, and it overrides any
|
||||||
name that was inferred from the expression's context.
|
name that was inferred from the expression's context. Normally, the
|
||||||
|
property value should be a symbol or an identifier.
|
||||||
|
|
||||||
When an inferred name is not available, but a source location is
|
When an inferred name is not available, but a source location is
|
||||||
available, a name is constructed using the source location
|
available, a name is constructed using the source location
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
@defmodule[syntax/name]
|
@defmodule[syntax/name]
|
||||||
|
|
||||||
@defproc[(syntax-local-infer-name [stx syntax?]) (or/c symbol? false/c)]{
|
@defproc[(syntax-local-infer-name [stx syntax?]) any/c]{
|
||||||
|
|
||||||
Similar to @scheme[syntax-local-name] except that @scheme[stx] is
|
Similar to @scheme[syntax-local-name] except that @scheme[stx] is
|
||||||
checked for an @scheme['inferred-name] property (which overrides any
|
checked for an @scheme['inferred-name] property (which overrides any
|
||||||
|
|
Loading…
Reference in New Issue
Block a user