racket/collects/syntax/scribblings/name.scrbl
Eli Barzilay ac26fe7554 A ton of @scheme*' -> @racket*' and related updates.
Also, updates some of the mzlib files to point at `racket/*' libraries
rather than to `scheme/*' ones.
2011-06-25 04:08:47 -04:00

17 lines
648 B
Racket

#lang scribble/doc
@(require "common.rkt" (for-label syntax/name))
@title[#:tag "name"]{Extracting Inferred Names}
@defmodule[syntax/name]
@defproc[(syntax-local-infer-name [stx syntax?]) any/c]{
Similar to @racket[syntax-local-name] except that @racket[stx] is
checked for an @racket['inferred-name] property (which overrides any
inferred name). If neither @racket[syntax-local-name] nor
@racket['inferred-name] produce a name, or if the
@racket['inferred-name] property value is @|void-const|, then a name
is constructed from the source-location information in @racket[stx],
if any. If no name can be constructed, the result is @racket[#f].}