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

Function semDynamicType

compiler/semantic/expr.go:547–552  ·  view source on GitHub ↗
(n ast.Node, tv ast.Type)

Source from the content-addressed store, hash-verified

545}
546
547func semDynamicType(n ast.Node, tv ast.Type) *sem.CallExpr {
548 if typeName, ok := tv.(*ast.TypeName); ok {
549 return dynamicTypeName(n, typeName.Name)
550 }
551 return nil
552}
553
554func dynamicTypeName(n ast.Node, name string) *sem.CallExpr {
555 return sem.NewCall(

Callers 1

exprMethod · 0.85

Calls 1

dynamicTypeNameFunction · 0.85

Tested by

no test coverage detected