'use strict';
import { nodeTypes } from '@flint/infra/analysis/function-analysis';
import { jsBasicTypes } from '../../../base-repo/constants/basic-types.js';

var __defProp=Object['defineProperty'],__name=(_0x31820e,_0x2444ec)=>__defProp(_0x31820e,'name',{'value':_0x2444ec,'configurable':!![]});function isDirectNullishInit(_0x31855e){return _0x31855e['type']===nodeTypes['literal']&&_0x31855e['value']===null||_0x31855e['type']===nodeTypes['identifier']&&_0x31855e['name']===jsBasicTypes['undefined'];}__name(isDirectNullishInit,'isDirectNullishInit');function hasUndefined(_0x35138f){return _0x35138f['some'](_0x67f102=>_0x67f102['type']===nodeTypes['TSUndefinedKeyword']);}__name(hasUndefined,'hasUndefined');function hasNull(_0x3874e0){return _0x3874e0['some'](_0x3bf729=>_0x3bf729['type']===nodeTypes['TSNullKeyword']);}__name(hasNull,'hasNull');function isNullOrUndefinedAnalysis(_0x207389){return !!_0x207389&&(_0x207389['type']===nodeTypes['literal']&&_0x207389['value']===null||_0x207389['type']===nodeTypes['identifier']&&_0x207389['name']===jsBasicTypes['undefined']||_0x207389['type']===nodeTypes['unaryExpression']&&_0x207389['operator']===jsBasicTypes['void']);}__name(isNullOrUndefinedAnalysis,'isNullOrUndefinedAnalysis');function isNull(_0x2b387d){return typeof _0x2b387d===jsBasicTypes['object']&&!_0x2b387d;}__name(isNull,'isNull');

export { hasNull, hasUndefined, isDirectNullishInit, isNull, isNullOrUndefinedAnalysis };
