racket/collects/syntax/scribblings/strip-context.scrbl
Eli Barzilay debd1f9f1e Recketizing much in `net/*', mass ".ss" -> ".rkt" conversion in .scrbl files.
(Some other minor things here and there.)
2011-06-20 04:27:14 -04:00

18 lines
581 B
Racket

#lang scribble/doc
@(require "common.rkt" (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].}