Scoop API

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 not
3 * substitutes for it.
4 */
5public 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.identity
12/**
13 * The identity of one field declaration. The stored identity is opaque; display names are not
14 * substitutes for it.
15 */
16public 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.identity
23/**
24 * The identity of one property declaration. The stored identity is opaque; display names are not
25 * substitutes for it.
26 */
27public 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.identity
34/**
35 * The identity of one accessor declaration. The stored identity is opaque; display names are not
36 * substitutes for it.
37 */
38public 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.identity
45/**
46 * The identity of one variant declaration. The stored identity is opaque; display names are not
47 * substitutes for it.
48 */
49public 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.identity
56/**
57 * The identity of one constructor declaration. The stored identity is opaque; display names are
58 * not substitutes for it.
59 */
60public 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.identity
67/**
68 * The identity of one parameter declaration. The stored identity is opaque; display names are not
69 * substitutes for it.
70 */
71public 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.identity
78/**
79 * The visibility recorded for an individual declaration, including local declarations.
80 */
81public 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 Local