You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This rewrite includes optional fields as Arcs in a Vertex,
instead of keeping track of them in the StructInfo.
This has the effect of them being evaluated and processed
like any other arc. This, in turn, allows optional fields
to be prepared for comparison, which allows disjunctions
to be evaluated early.
It is also a necessary step for the implementation of
required fields.
Issue #2003
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: Id28c39d6d195b97a9d026fe9804796023306e9bc
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/551104
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Instead of introducing a new type for Required fields,
we merge all these field types. They are nearly
identical.
Suffix is introduced to simplify debug printing.
Issue #2003
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: I44a5864e241e25dca1ec199d49bf2105683e61ca
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/551203
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
Reviewed-by: Aram Hăvărneanu <aram@cue.works>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUEcueckoo <cueckoo@cuelang.org>
Support Field.Constraint field to define the type of constraint.
Add helper functions to allow setting AST fields
in a backwards compatible way.
This is needed to support the optional field refactoring.
Issue #2003
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: I75c430578ce039a87de20f0de21df69bcf32e1e3
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/551204
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUEcueckoo <cueckoo@cuelang.org>
This umbrella issue exists as a placeholder for the implementation of the required fields proposal.
Note that at the time of creation, this proposal has not been accepted.
If the proposal is not accepted (rejected, closed, etc), then this issue will simply be closed.
If the proposal is accepted, then this issue will be repurposed as an umbrella tracking issue for implementation.
The text was updated successfully, but these errors were encountered: