mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 21:34:06 -06:00
13 lines
442 B
JavaScript
13 lines
442 B
JavaScript
import { EnumValueVisitee, EnumValueVisiteeWithNull, EnumValueVisiteeWithUndefined } from "./EnumValueVisitee";
|
|
export function visitEnumValue(value) {
|
|
if (value === null) {
|
|
return new EnumValueVisiteeWithNull();
|
|
}
|
|
else if (value === undefined) {
|
|
return new EnumValueVisiteeWithUndefined();
|
|
}
|
|
else {
|
|
return new EnumValueVisitee(value);
|
|
}
|
|
}
|
|
//# sourceMappingURL=visitEnumValue.js.map
|