blob: 5b6698bd131f2fab75670a15ec7b6d2eb14a74d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package org.zwobble.couscous.values;
import org.zwobble.couscous.types.ScalarType;
import org.zwobble.couscous.types.Types;
public class UnitValue implements PrimitiveValue {
static final UnitValue UNIT = new UnitValue();
private UnitValue() {
}
@Override
public <T> T accept(Visitor<T> visitor) {
return visitor.visitUnit();
}
@Override
public ScalarType getType() {
return Types.VOID;
}
}
|