"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
Object.defineProperty(exports, "__esModule", { value: true });
exports.CdmDataTypeReference = void 0;
const internal_1 = require("../internal");
class CdmDataTypeReference extends internal_1.CdmObjectReferenceBase {
    static get objectType() {
        return internal_1.cdmObjectType.dataTypeRef;
    }
    constructor(ctx, dataType, simpleReference) {
        super(ctx, dataType, simpleReference);
        // let bodyCode = () =>
        {
            this.objectType = internal_1.cdmObjectType.dataTypeRef;
        }
        // return p.measure(bodyCode);
    }
    getObjectType() {
        // let bodyCode = () =>
        {
            return internal_1.cdmObjectType.dataTypeRef;
        }
        // return p.measure(bodyCode);
    }
    /**
     * @internal
     */
    copyRefObject(resOpt, refTo, simpleReference, host) {
        // let bodyCode = () =>
        {
            if (!host) {
                return new CdmDataTypeReference(this.ctx, refTo, simpleReference);
            }
            else {
                return host.copyToHost(this.ctx, refTo, simpleReference);
            }
        }
        // return p.measure(bodyCode);
    }
    /**
     * @internal
     */
    visitRef(pathFrom, preChildren, postChildren) {
        // let bodyCode = () =>
        {
            return false;
        }
        // return p.measure(bodyCode);
    }
}
exports.CdmDataTypeReference = CdmDataTypeReference;
//# sourceMappingURL=CdmDataTypeReference.js.map