racket/collects/syntax/scribblings/name.scrbl
Matthew Flatt f6c4108af1 syntax collection scribbled
svn: r8670
2008-02-15 13:29:35 +00:00

17 lines
607 B
Racket

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