set-where ( loc defspec -- )
Factor documentation > Factor handbook > The implementation > Definitions > Definition protocol
Prev:where ( defspec -- loc )
Next:forget ( defspec -- )


Vocabulary
definitions

Inputs and outputs
loca { path line# } pair
defspeca definition specifier


Word description
Sets the definition's location.

Notes
This word is used by the parser.

Definition
IN: definitions

GENERIC: set-where ( loc defspec -- )


Methods
USING: accessors definitions delegate.private ;

M: consultation set-where loc<< ;


USING: accessors definitions help.topics ;

M: link set-where name>> lookup-article loc<< ;


USING: definitions multi-methods sequences ;

M: method-spec set-where unclip method set-where ;


USING: assocs classes.mixin classes.mixin.private definitions
words ;

M: mixin-instance set-where
>mixin-instance< "instances" word-prop set-at ;


USING: accessors definitions help.tips ;

M: tip set-where loc<< ;


USING: accessors definitions help.topics kernel words ;

M: word-link set-where name>> swap "help-loc" set-word-prop ;


USING: definitions kernel words ;

M: word set-where swap "loc" set-word-prop ;