MCPcopy Create free account
hub / github.com/SolarLune/masterplan / NewUndoState

Function NewUndoState

undo.go:291–300  ·  view source on GitHub ↗
(card *Card)

Source from the content-addressed store, hash-verified

289}
290
291func NewUndoState(card *Card) *UndoState {
292
293 state := &UndoState{
294 Card: card,
295 Serialized: card.Serialize(false),
296 }
297
298 return state
299
300}
301
302func (undoState *UndoState) String() string {
303 return undoState.Serialized + fmt.Sprintf(" Deletion: %t", undoState.Deletion)

Callers 6

CreateNewCardMethod · 0.85
PasteCardsMethod · 0.85
HandleUndosMethod · 0.85
ReceiveMessageMethod · 0.85
OpenProjectFromFunction · 0.85
placeCardInStackFunction · 0.85

Calls 1

SerializeMethod · 0.45

Tested by

no test coverage detected