Documentation
¶
Overview ¶
Package size defines the canonical identity of input-size variables shared by the complexity engine and the annotation layer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromRef ¶
func FromRef(r annotation.SizeRef) bound.Var
FromRef maps a parsed annotation size reference to a canonical size variable.
func IsFieldPath ¶ added in v1.5.0
IsFieldPath reports whether the variable names a field-path size — one whose subject contains a field selection, e.g. len(s.items) or s.limit. Field-path sizes are frame-local: they must never leak through a call into a caller's bound (the caller cannot interpret the callee's receiver name).
Types ¶
Click to show internal directories.
Click to hide internal directories.