MCPcopy Create free account
hub / github.com/akyoto/q / StringFrom

Method StringFrom

src/token/Source.go:35–37  ·  view source on GitHub ↗

StringFrom returns the source code.

(code []byte)

Source from the content-addressed store, hash-verified

33
34// StringFrom returns the source code.
35func (s Source) StringFrom(code []byte) string {
36 return string(code[s.Start():s.End()])
37}

Callers 1

TestSourceFunction · 0.95

Implementers 2

Tokensrc/token/Token.go
Sourcesrc/token/Source.go

Calls 2

StartMethod · 0.95
EndMethod · 0.95

Tested by 1

TestSourceFunction · 0.76