rollback-source-file ( source-file -- ) (original) (raw)

rollback-source-file ( source-file -- )

Vocabulary
source-files

Inputs

source-file a source-file

Outputs
None

Word description
Records information to the source file after an incomplete parse which ended with an error.

Definition

USING: accessors compiler.units kernel namespaces sequences sets
;

IN: source-files

: rollback-source-file ( source-file -- )
[ new-definitions get [ union ] 2map ] change-definitions
drop ;