"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.CdmPurposeReference = void 0;
const internal_1 = require("../internal");
class CdmPurposeReference extends internal_1.CdmObjectReferenceBase {
    static get objectType() {
        return internal_1.cdmObjectType.purposeRef;
    }
    constructor(ctx, purpose, simpleReference) {
        super(ctx, purpose, simpleReference);
        // let bodyCode = () =>
        {
            this.objectType = internal_1.cdmObjectType.purposeRef;
        }
        // return p.measure(bodyCode);
    }
    getObjectType() {
        // let bodyCode = () =>
        {
            return internal_1.cdmObjectType.purposeRef;
        }
        // return p.measure(bodyCode);
    }
    /**
     * @internal
     */
    copyRefObject(resOpt, refTo, simpleReference, host) {
        // let bodyCode = () =>
        {
            if (!host) {
                return new CdmPurposeReference(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.CdmPurposeReference = CdmPurposeReference;
//# sourceMappingURL=CdmPurposeReference.js.map