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