MCPcopy
hub / github.com/expr-lang/expr / NewSource

Function NewSource

file/source.go:9–13  ·  view source on GitHub ↗
(contents string)

Source from the content-addressed store, hash-verified

7}
8
9func NewSource(contents string) Source {
10 return Source{
11 raw: contents,
12 }
13}
14
15func (s Source) String() string {
16 return s.raw

Callers 6

ParseMethod · 0.92
TestLexFunction · 0.92
TestLex_locationFunction · 0.92
TestLex_errorFunction · 0.92

Calls

no outgoing calls

Tested by 5

TestLexFunction · 0.74
TestLex_locationFunction · 0.74
TestLex_errorFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…