forget-source ( path -- ) (original) (raw)
forget-source ( path -- )
Factor handbook » The implementation » Source files
Prev: | record-definitions ( source-file -- ) |
---|---|
Next: | reset-checksums ( -- ) |
Vocabulary
source-files
Inputs
path | a pathname string |
---|
Outputs
None
Word description
Forgets all information known about a source file.
Notes
This word must be called from inside with-compilation-unit.
Definition
USING: accessors assocs definitions kernel namespaces sequences
sets ;
: forget-source ( path -- )
source-files get delete-at*
[ definitions>> [ members forget-all ] each ] [ drop ] if ;