EnclosingType

data class EnclosingType(val location: Location, val type: ProtoType, val name: String, val documentation: String, val nestedTypes: List<Type>, val nestedExtendList: List<Extend>, val syntax: Syntax) : Type

An empty type which only holds nested types.

Constructors

Link copied to clipboard
constructor(location: Location, type: ProtoType, name: String, documentation: String, nestedTypes: List<Type>, nestedExtendList: List<Extend>, syntax: Syntax)

Properties

Link copied to clipboard
open override val documentation: String
Link copied to clipboard
open override val location: Location
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val nestedExtendList: List<Extend>
Link copied to clipboard
open override val nestedTypes: List<Type>
Link copied to clipboard
open override val options: Options
Link copied to clipboard
open override val syntax: Syntax
Link copied to clipboard
open override val type: ProtoType

Functions

Link copied to clipboard
open override fun linkMembers(linker: Linker)
Link copied to clipboard
open override fun linkOptions(linker: Linker, syntaxRules: SyntaxRules, validate: Boolean)
Link copied to clipboard
open override fun retainAll(schema: Schema, markSet: MarkSet): Type?
Link copied to clipboard
open override fun retainLinked(linkedTypes: Set<ProtoType>, linkedFields: Set<Field>): Type?

Returns a copy of this containing only the types in linkedTypes and extensions in linkedFields, or null if that set is empty. This will return an EnclosingType if it is itself not linked, but its nested types are linked.

Link copied to clipboard
fun toElement(): MessageElement
Link copied to clipboard

Returns all types and subtypes which are linked to the type.

Link copied to clipboard
open override fun validate(linker: Linker, syntaxRules: SyntaxRules)