Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
9
func
NewSource(contents string) Source {
10
return
Source{
11
raw: contents,
12
}
13
}
14
15
func
(s Source) String() string {
16
return
s.raw
Callers
6
Parse
Method · 0.92
TestLex
Function · 0.92
TestLex_location
Function · 0.92
TestLex_error
Function · 0.92
TestStringSource_SnippetMultiLine
Function · 0.85
TestStringSource_SnippetSingleLine
Function · 0.85
Calls
no outgoing calls
Tested by
5
TestLex
Function · 0.74
TestLex_location
Function · 0.74
TestLex_error
Function · 0.74
TestStringSource_SnippetMultiLine
Function · 0.68
TestStringSource_SnippetSingleLine
Function · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…