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

Struct AstNumber

coderd/rbac/regosql/sqltypes/number.go:9–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7)
8
9type AstNumber struct {
10 Source RegoSource
11 // Value is intentionally vague as to if it's an integer or a float.
12 // This defers that decision to the user. Rego keeps all numbers in this
13 // type. If we were to source the type from something other than Rego,
14 // we might want to make a Float and Int type which keep the original
15 // precision.
16 Value json.Number
17}
18
19func Number(source RegoSource, v json.Number) Node {
20 return AstNumber{Value: v, Source: source}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected