scoop:scoop.core:0.1.0
src/type_info_uses.scoop
Selected production source · src/type_info_uses.scoop
1
/**2
* A concrete type at one signature position, retaining annotations and nested type-use children.3
*/4
public struct TypeUseInfo(5
val type: TypeRef,6
val annotations: Array<AnnotationInfo>,7
val children: Array<TypeUseChild>8
)10
/**11
* One nested type use and the role it occupies within its parent.12
*/13
public struct TypeUseChild(val role: TypeUseRole, val value: TypeUseInfo)15
/**16
* The position of a nested type inside a generic, tuple, function, or pointer type use.17
*/18
public enum TypeUseRole {19
/**20
* A zero-based generic argument position.21
*/22
Argument(Long),23
/**24
* A zero-based tuple element position.25
*/26
TupleElement(Long),27
/**28
* The function receiver type.29
*/30
Receiver,31
/**32
* A zero-based function parameter position.33
*/34
Parameter(Long),35
/**36
* The function result type.37
*/38
Result,39
/**40
* The native data pointer's pointee type.41
*/42
Pointee43
}