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

Method stringy

compiler/semantic/expr.go:657–661  ·  view source on GitHub ↗
(loc ast.Node, typ super.Type)

Source from the content-addressed store, hash-verified

655}
656
657func (t *translator) stringy(loc ast.Node, typ super.Type) {
658 if !hasString(typ) {
659 t.error(loc, errors.New("expected type string"))
660 }
661}
662
663func (t *translator) isIndexOfThis(lhs, rhs sem.Expr) *sem.ThisExpr {
664 if this, ok := lhs.(*sem.ThisExpr); ok {

Callers 1

binaryExprMethod · 0.95

Calls 3

hasStringFunction · 0.85
NewMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected