lib

package
v0.0.0-...-bbc9ce3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2021 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

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 ConformanceType(gidlTypeString string) string

func LlcppErrorCode

func LlcppErrorCode(code gidlir.ErrorCode) string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL