Skip to content

Meaning

Defined in: src/expressions/condition.ts:98

A named, composable, inspectable semantic predicate. blocked.and(x) keeps two expression nodes; it does not rewrite the proposition.

Type Parameter Default type
T unknown

new Meaning<T>(node, name?): Meaning<T>

Defined in: src/expressions/condition.ts:99

Parameter Type
node Condition<T>
name? string

Meaning<T>

Property Modifier Type Defined in
node readonly Condition<T> src/expressions/condition.ts:100
name? readonly string src/expressions/condition.ts:101

including(description): Meaning<T>

Defined in: src/expressions/condition.ts:108

Draw the boundary from the inside: what the proposition covers. Only valid on a single proposition. Becomes Noul criteria.true.

Parameter Type
description EntryType

Meaning<T>


excluding(description): Meaning<T>

Defined in: src/expressions/condition.ts:116

Draw the boundary from the outside: what the proposition does not cover, even if it looks close. Only valid on a single proposition. Becomes Noul criteria.false.

Parameter Type
description EntryType

Meaning<T>


named(name): Meaning<T>

Defined in: src/expressions/condition.ts:121

Give the meaning a name for traces, fixtures, and error messages.

Parameter Type
name string

Meaning<T>


and(other): Meaning<T>

Defined in: src/expressions/condition.ts:127

Both must hold.

Parameter Type
other ConditionLike<T>

Meaning<T>


or(other): Meaning<T>

Defined in: src/expressions/condition.ts:132

Either may hold.

Parameter Type
other ConditionLike<T>

Meaning<T>


unless(other): Meaning<T>

Defined in: src/expressions/condition.ts:137

Holds only if the exception does not: a.unless(b) is a and not b.

Parameter Type
other ConditionLike<T>

Meaning<T>


not(): Meaning<T>

Defined in: src/expressions/condition.ts:142

The negation. Uncertain stays uncertain.

Meaning<T>


describe(): string

Defined in: src/expressions/condition.ts:147

Human-readable rendering of the expression tree.

string


toJSON(): unknown

Defined in: src/expressions/condition.ts:152

Serializable form: the name and the expression tree, with code predicates reduced to their names.

unknown