Documentation ¶
Index ¶
- Constants
- func BuildValueAllocator(allocatorVar string, value gidlir.Value, decl gidlmixer.Declaration, ...) (string, string)
- func BuildValueUnowned(value gidlir.Value, decl gidlmixer.Declaration, handleRepr HandleRepr) (string, string)
- func ConformanceType(gidlTypeString string) string
- func LlcppErrorCode(code gidlir.ErrorCode) string
- type EqualityCheck
- type HandleRepr
Constants ¶
View Source
const ( HandleReprDisposition HandleReprInfo HandleReprRaw )
Variables ¶
This section is empty.
Functions ¶
func BuildValueAllocator ¶
func BuildValueAllocator(allocatorVar string, value gidlir.Value, decl gidlmixer.Declaration, handleRepr HandleRepr) (string, string)
func BuildValueUnowned ¶
func BuildValueUnowned(value gidlir.Value, decl gidlmixer.Declaration, handleRepr HandleRepr) (string, string)
func ConformanceType ¶
func LlcppErrorCode ¶
Types ¶
type EqualityCheck ¶
type EqualityCheck = struct { // InputVar is the name of the wire domain object to be checked. InputVar string // HelperStatements is a series of statements binding particular fields // in a wire domain object to named references. It should precede the // EqualityExpr when rendered. HelperStatements string // Expr is an expression checking the named references from // HelperStatements against their expected value. Expr string }
EqualityCheck contains the necessary information to render an equality check. See BuildEqualityCheck.
func BuildEqualityCheck ¶
func BuildEqualityCheck(actualVar string, expectedValue gidlir.Value, decl gidlmixer.Declaration, handleKoidVectorName string) EqualityCheck
BuildEqualityCheck builds an ad-hoc equality test verifying that a wire domain object matches the expected value.
In particular, an actual handle having the same KOID, type, and rights as the expected handle is considered equal to the expected, despite possibly having different handle numbers, to accommodate handle replacement.
type HandleRepr ¶
type HandleRepr int
Click to show internal directories.
Click to hide internal directories.