Skip to content

Commit 2d01716

Browse files
lauraharkercopybara-github
authored andcommitted
Add color deserialization for primitives and unions
PiperOrigin-RevId: 321652678
1 parent 203ada5 commit 2d01716

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/com/google/javascript/jscomp/colors/PrimitiveColor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public enum PrimitiveColor implements Color {
2626
SYMBOL,
2727
NULL_OR_VOID,
2828
BIGINT,
29+
BOOLEAN,
2930
// Equivalent to Closure '*'/'?' and TS unknown/any
3031
UNKNOWN;
3132

src/com/google/javascript/jscomp/colors/UnionColor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
@AutoValue
2727
public abstract class UnionColor implements Color {
2828

29-
static UnionColor create(ImmutableSet<Color> alternates) {
29+
public static UnionColor create(ImmutableSet<Color> alternates) {
3030
checkArgument(
3131
alternates.size() > 1,
3232
"UnionColor alternates should have more than one element, found %s",

0 commit comments

Comments
 (0)