MCPcopy Create free account
hub / github.com/brimdata/super / ParseValueFromAST

Function ParseValueFromAST

sup/sup.go:92–98  ·  view source on GitHub ↗
(sctx *super.Context, ast ast.Value)

Source from the content-addressed store, hash-verified

90}
91
92func ParseValueFromAST(sctx *super.Context, ast ast.Value) (super.Value, error) {
93 val, err := NewAnalyzer().ConvertValue(sctx, ast)
94 if err != nil {
95 return super.Null, err
96 }
97 return Build(scode.NewBuilder(), val)
98}
99
100func TranslateType(sctx *super.Context, astType ast.Type) (super.Type, error) {
101 return NewAnalyzer().convertType(sctx, astType)

Callers

nothing calls this directly

Calls 4

NewBuilderFunction · 0.92
NewAnalyzerFunction · 0.85
ConvertValueMethod · 0.80
BuildFunction · 0.70

Tested by

no test coverage detected