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

Method ConvertVariable

coderd/rbac/regosql/sqltypes/variable.go:26–33  ·  view source on GitHub ↗
(rego ast.Ref)

Source from the content-addressed store, hash-verified

24}
25
26func (vc *VariableConverter) ConvertVariable(rego ast.Ref) (Node, bool) {
27 for _, c := range vc.converters {
28 if n, ok := c.ConvertVariable(rego); ok {
29 return n, true
30 }
31 }
32 return nil, false
33}
34
35// RegoVarPath will consume the following terms from the given rego Ref and
36// return the remaining terms. If the path does not fully match, an error is

Callers

nothing calls this directly

Calls 1

ConvertVariableMethod · 0.65

Tested by

no test coverage detected