MCPcopy
hub / github.com/google/mangle / Number

Function Number

ast/ast.go:313–315  ·  view source on GitHub ↗

Number constructs a constant symbol that contains a number.

(num int64)

Source from the content-addressed store, hash-verified

311
312// Number constructs a constant symbol that contains a number.
313func Number(num int64) Constant {
314 return Constant{NumberType, "", num, nil, nil}
315}
316
317// Float64 constructs a constant symbol that contains a float64.
318func Float64(floatNum float64) Constant {

Callers 15

TestDeclsErrorsFunction · 0.92
TestClausesErrorsFunction · 0.92
TestDisplayStringFunction · 0.92
TestBuiltinFunction · 0.92
TestListMapStructFunction · 0.92
TestTransformFunction · 0.92
ShouldQueryMethod · 0.92
ExecuteQueryMethod · 0.92
BenchmarkJoinFunction · 0.92
intervalToConstantFunction · 0.92
TestSimpleEvalNaiveFunction · 0.92

Calls

no outgoing calls

Tested by 15

TestDeclsErrorsFunction · 0.74
TestClausesErrorsFunction · 0.74
TestDisplayStringFunction · 0.74
TestBuiltinFunction · 0.74
TestListMapStructFunction · 0.74
TestTransformFunction · 0.74
ShouldQueryMethod · 0.74
ExecuteQueryMethod · 0.74
BenchmarkJoinFunction · 0.74
TestSimpleEvalNaiveFunction · 0.74
TestBuiltinNaiveFunction · 0.74