Skip to content

Commit 72936e4

Browse files
committed
cue: define all Op constant values explicitly with that type
Follow-up to fca61f5. go doc (somewhat understandably) fails to see constant values of type Op unless they are explicitly defined to be of that type, even though Op is defined as an alias of adt.Op and the values assigned to those constants are of the type adt.Op. Updates #1374 Signed-off-by: Paul Jolly <paul@myitcv.io> Change-Id: Ie07c64c5de1c866bc774a0c2e5dbcd08e61e6f9b Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/527238 Unity-Result: CUEcueckoo <cueckoo@cuelang.org> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
1 parent 29a686d commit 72936e4

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

cue/op.go

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -25,40 +25,40 @@ type Op = adt.Op
2525

2626
// Values of Op.
2727
const (
28-
NoOp = adt.NoOp
29-
30-
AndOp = adt.AndOp
31-
OrOp = adt.OrOp
32-
33-
SelectorOp = adt.SelectorOp
34-
IndexOp = adt.IndexOp
35-
SliceOp = adt.SliceOp
36-
CallOp = adt.CallOp
37-
38-
BooleanAndOp = adt.BoolAndOp
39-
BooleanOrOp = adt.BoolOrOp
40-
41-
EqualOp = adt.EqualOp
42-
NotOp = adt.NotOp
43-
NotEqualOp = adt.NotEqualOp
44-
LessThanOp = adt.LessThanOp
45-
LessThanEqualOp = adt.LessEqualOp
46-
GreaterThanOp = adt.GreaterThanOp
47-
GreaterThanEqualOp = adt.GreaterEqualOp
48-
49-
RegexMatchOp = adt.MatchOp
50-
NotRegexMatchOp = adt.NotMatchOp
51-
52-
AddOp = adt.AddOp
53-
SubtractOp = adt.SubtractOp
54-
MultiplyOp = adt.MultiplyOp
55-
FloatQuotientOp = adt.FloatQuotientOp
56-
IntQuotientOp = adt.IntQuotientOp
57-
IntRemainderOp = adt.IntRemainderOp
58-
IntDivideOp = adt.IntDivideOp
59-
IntModuloOp = adt.IntModuloOp
60-
61-
InterpolationOp = adt.InterpolationOp
28+
NoOp Op = adt.NoOp
29+
30+
AndOp Op = adt.AndOp
31+
OrOp Op = adt.OrOp
32+
33+
SelectorOp Op = adt.SelectorOp
34+
IndexOp Op = adt.IndexOp
35+
SliceOp Op = adt.SliceOp
36+
CallOp Op = adt.CallOp
37+
38+
BooleanAndOp Op = adt.BoolAndOp
39+
BooleanOrOp Op = adt.BoolOrOp
40+
41+
EqualOp Op = adt.EqualOp
42+
NotOp Op = adt.NotOp
43+
NotEqualOp Op = adt.NotEqualOp
44+
LessThanOp Op = adt.LessThanOp
45+
LessThanEqualOp Op = adt.LessEqualOp
46+
GreaterThanOp Op = adt.GreaterThanOp
47+
GreaterThanEqualOp Op = adt.GreaterEqualOp
48+
49+
RegexMatchOp Op = adt.MatchOp
50+
NotRegexMatchOp Op = adt.NotMatchOp
51+
52+
AddOp Op = adt.AddOp
53+
SubtractOp Op = adt.SubtractOp
54+
MultiplyOp Op = adt.MultiplyOp
55+
FloatQuotientOp Op = adt.FloatQuotientOp
56+
IntQuotientOp Op = adt.IntQuotientOp
57+
IntRemainderOp Op = adt.IntRemainderOp
58+
IntDivideOp Op = adt.IntDivideOp
59+
IntModuloOp Op = adt.IntModuloOp
60+
61+
InterpolationOp Op = adt.InterpolationOp
6262
)
6363

6464
// isCmp reports whether an op is a comparator.

0 commit comments

Comments
 (0)