racket/collects/syntax/scribblings/strip-context.scrbl
Matthew Flatt 75373d4094 refine replace-context docs
svn: r14223
2009-03-23 01:25:45 +00:00

19 lines
590 B
Racket

#lang scribble/doc
@(require "common.ss"
(for-label syntax/strip-context))
@title[#:tag "strip-context"]{Replacing Lexical Context}
@defmodule[syntax/strip-context]
@defproc[(strip-context [stx syntax?]) syntax?]{
Removes all lexical context from @scheme[stx], preserving
source-location information and properties.}
@defproc[(replace-context [ctx-stx (or/c syntax? #f)] [stx syntax?]) syntax?]{
Uses the lexical context of @scheme[ctx-stx] to replace the lexical
context of all parts of @scheme[stx], preserving source-location
information and properties of @scheme[stx].}