MCPcopy
hub / github.com/micro-editor/micro / Push

Method Push

internal/buffer/stack.go:21–24  ·  view source on GitHub ↗

Push a new element onto the stack

(value *TextEvent)

Source from the content-addressed store, hash-verified

19
20// Push a new element onto the stack
21func (s *TEStack) Push(value *TextEvent) {
22 s.Top = &Element{value, s.Top}
23 s.Size++
24}
25
26// Pop removes the top element from the stack and returns its value
27// If the stack is empty, return nil

Callers 5

ExecuteMethod · 0.80
UndoOneEventMethod · 0.80
RedoOneEventMethod · 0.80
TestStackFunction · 0.80
LoadFileFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestStackFunction · 0.64