MCPcopy Index your code
hub / github.com/coder/coder / sameExprFormWithSuffix

Function sameExprFormWithSuffix

scripts/intxcheck/analyzer.go:470–475  ·  view source on GitHub ↗
(got, base exprForm, suffix string)

Source from the content-addressed store, hash-verified

468}
469
470func sameExprFormWithSuffix(got, base exprForm, suffix string) bool {
471 if got.root != nil && base.root != nil {
472 return got.root == base.root && got.suffix == base.suffix+suffix
473 }
474 return got.text == base.text+suffix
475}
476
477func exprFormFor(pass *analysis.Pass, expr ast.Expr) exprForm {
478 text := exprString(expr)

Callers 1

matchesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected