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

Method ConvertVariable

coderd/rbac/regosql/sqltypes/always_false.go:36–48  ·  view source on GitHub ↗
(rego ast.Ref)

Source from the content-addressed store, hash-verified

34func (alwaysFalse) UseAs() Node { return alwaysFalse{} }
35
36func (f alwaysFalse) ConvertVariable(rego ast.Ref) (Node, bool) {
37 if f.Matcher != nil {
38 n, ok := f.Matcher.ConvertVariable(rego)
39 if ok {
40 return alwaysFalse{
41 Matcher: f.Matcher,
42 InnerNode: n,
43 }, true
44 }
45 }
46
47 return nil, false
48}
49
50func (alwaysFalse) SQLString(_ *SQLGenerator) string {
51 return "false"

Callers

nothing calls this directly

Calls 1

ConvertVariableMethod · 0.65

Tested by

no test coverage detected