number.go ×4

Frontier kind: Joint frontier

unlabeled · c_a352ab73dc7a

1 test · 36 LOC · 1 file · introduces 1 test · 21 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges21 lines · 1 files
Tests
1 test

Contains — complete concept membership

All code (extent)
9 ranges36 lines · 1 file · Browse complete extent
All tests (intent)
1 testBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 21 introduced LOC across 4 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/number/number.go 21 introduced LOC · 4 ranges

Open complete file

43 number = n
44
45 > case uint8: number.go
46 > numberType = TypeUint
47 > number = uint(n)
48 > case uint16:
49 > numberType = TypeUint
50 > number = uint(n)
51 > case uint32:
52 > numberType = TypeUint
53 > number = uint(n)
54 > case uint64:
55 > numberType = TypeUint
56 > number = uint(n)
57 > case uint:
58 > numberType = TypeUint
59 > number = n
60
61 case float32:
88 case TypeInt:
89 return n.value.(int)
90 > case TypeUint: number.go
91 > return int(n.value.(uint))
92 case TypeUnknown:
93 return defaultValue
105 case TypeInt:
106 return uint(n.value.(int))
107 > case TypeUint: number.go
108 > return n.value.(uint)
109 case TypeUnknown:
110 return defaultValue
122 case TypeInt:
123 return float64(n.value.(int))
124 > case TypeUint: number.go
125 > return float64(n.value.(uint))
126 case TypeUnknown:
127 return defaultValue