1 /*
2  * Copyright 2020 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package androidx.compose.runtime.internal
18 
19 import androidx.compose.runtime.ComposeCompilerApi
20 
21 /**
22  * This annotation is added on classes by the compiler when their stability is inferred. It
23  * indicates that there will be a synthetic static final int `$stable` added to the class which can
24  * be used by the compose compiler plugin to generate expressions to determine the stability of a
25  * realized type at runtime.
26  *
27  * @param parameters A bitmask, with one bit per type parameter of the annotated class. A 1 bit
28  *   indicates that the stability of the annotated class should be calculated as a combination of
29  *   the stability of the class itself and the stability of that type parameter.
30  */
31 @ComposeCompilerApi
32 @Target(AnnotationTarget.CLASS)
33 @Retention(AnnotationRetention.BINARY)
34 annotation class StabilityInferred(val parameters: Int)
35