/**
 * Copyright (c) 2020-present, Goldman Sachs
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import { computed, makeObservable, observable } from 'mobx';
import { skipObserved } from '../../../../action/changeDetection/CoreObserverHelper.js';
import { V1_observe_ValueSpecification } from './V1_ValueSpecificationObserver.js';
import { V1_ValueSpecification } from '../model/valueSpecification/V1_ValueSpecification.js';
export const V1_observe_GenericType = skipObserved((metamodel) => {
    makeObservable(metamodel, {
        rawType: observable,
        multiplicityArguments: observable,
        hashCode: computed,
    });
    metamodel.typeArguments.forEach(V1_observe_GenericType);
    metamodel.typeVariableValues.forEach(V1_observe_ValueSpecification);
    return metamodel;
});
export const V1_observe_ParameterValue = skipObserved((metamodel) => {
    makeObservable(metamodel, {
        name: observable,
        value: observable,
        hashCode: computed,
    });
    if (metamodel.value instanceof V1_ValueSpecification) {
        V1_observe_ValueSpecification(metamodel.value);
    }
    return metamodel;
});
//# sourceMappingURL=V1_DomainObserverHelper.js.map