scoop:scoop.core:0.1.0
src/type_info_identity.scoop
Selected production source · src/type_info_identity.scoop
1
/**2
* The identity of one nominal declaration. The stored identity is opaque; display names are not3
* substitutes for it.4
*/5
public struct NominalRef(val identity: String) : Equals<NominalRef> {6
/**7
* Compares the represented declaration identities.8
*/9
public override operator fun equals(other: NominalRef): Boolean = identity == other.identity10
}12
/**13
* The identity of one field declaration. The stored identity is opaque; display names are not14
* substitutes for it.15
*/16
public struct FieldRef(val identity: String) : Equals<FieldRef> {17
/**18
* Compares the represented declaration identities.19
*/20
public override operator fun equals(other: FieldRef): Boolean = identity == other.identity21
}23
/**24
* The identity of one property declaration. The stored identity is opaque; display names are not25
* substitutes for it.26
*/27
public struct PropertyRef(val identity: String) : Equals<PropertyRef> {28
/**29
* Compares the represented declaration identities.30
*/31
public override operator fun equals(other: PropertyRef): Boolean = identity == other.identity32
}34
/**35
* The identity of one accessor declaration. The stored identity is opaque; display names are not36
* substitutes for it.37
*/38
public struct AccessorRef(val identity: String) : Equals<AccessorRef> {39
/**40
* Compares the represented declaration identities.41
*/42
public override operator fun equals(other: AccessorRef): Boolean = identity == other.identity43
}45
/**46
* The identity of one variant declaration. The stored identity is opaque; display names are not47
* substitutes for it.48
*/49
public struct VariantRef(val identity: String) : Equals<VariantRef> {50
/**51
* Compares the represented declaration identities.52
*/53
public override operator fun equals(other: VariantRef): Boolean = identity == other.identity54
}56
/**57
* The identity of one constructor declaration. The stored identity is opaque; display names are58
* not substitutes for it.59
*/60
public struct ConstructorRef(val identity: String) : Equals<ConstructorRef> {61
/**62
* Compares the represented declaration identities.63
*/64
public override operator fun equals(other: ConstructorRef): Boolean = identity == other.identity65
}67
/**68
* The identity of one parameter declaration. The stored identity is opaque; display names are not69
* substitutes for it.70
*/71
public struct ParameterRef(val identity: String) : Equals<ParameterRef> {72
/**73
* Compares the represented declaration identities.74
*/75
public override operator fun equals(other: ParameterRef): Boolean = identity == other.identity76
}78
/**79
* The visibility recorded for an individual declaration, including local declarations.80
*/81
public enum DeclarationVisibility {82
/**83
* Visible through the public declaration boundary.84
*/85
Public,86
/**87
* Visible within its declaring Cone.88
*/89
Internal,90
/**91
* Visible under protected member-access rules.92
*/93
Protected,94
/**95
* Visible only in the declaration's private scope.96
*/97
Private,98
/**99
* Declared in a local lexical scope.100
*/101
Local102
}