MCPcopy Create free account
hub / github.com/decomp/decomp / expr

Function expr

cmd/go-post/fix.go:728–736  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

726}
727
728func expr(s string) ast.Expr {
729 x, err := parser.ParseExpr(s)
730 if err != nil {
731 panic("parsing " + s + ": " + err.Error())
732 }
733 // Remove position information to avoid spurious newlines.
734 killPos(reflect.ValueOf(x))
735 return x
736}
737
738var posType = reflect.TypeOf(token.Pos(0))
739

Callers 1

renameFixTabFunction · 0.85

Calls 1

killPosFunction · 0.85

Tested by

no test coverage detected