MCPcopy Index your code
hub / github.com/Shopify/go-lua / save

Method save

scanner.go:141–145  ·  view source on GitHub ↗
(c rune)

Source from the content-addressed store, hash-verified

139}
140
141func (s *scanner) save(c rune) {
142 if err := s.buffer.WriteByte(byte(c)); err != nil {
143 s.scanError("lexical element too long", 0)
144 }
145}
146
147func (s *scanner) checkNext(str string) bool {
148 if s.current == 0 || !strings.ContainsRune(str, s.current) {

Callers 5

saveAndAdvanceMethod · 0.95
advanceAndSaveMethod · 0.95
readMultiLineMethod · 0.95
escapeErrorMethod · 0.95
readStringMethod · 0.95

Calls 1

scanErrorMethod · 0.95

Tested by

no test coverage detected