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

Function dynamicTypeName

compiler/semantic/expr.go:554–563  ·  view source on GitHub ↗
(n ast.Node, name string)

Source from the content-addressed store, hash-verified

552}
553
554func dynamicTypeName(n ast.Node, name string) *sem.CallExpr {
555 return sem.NewCall(
556 n,
557 "typename",
558 []sem.Expr{
559 // SUP string literal of type name
560 sem.NewLiteral(n, super.NewString(name)),
561 },
562 )
563}
564
565func (t *translator) regexp(b *ast.BinaryExpr, inType super.Type) (sem.Expr, super.Type) {
566 if b.Op != "~" {

Callers 1

semDynamicTypeFunction · 0.85

Calls 3

NewCallFunction · 0.92
NewLiteralFunction · 0.92
NewStringFunction · 0.92

Tested by

no test coverage detected