SwiftResolutionContext

data class SwiftResolutionContext(val unit: BaseUnit, val shapeIndex: ShapeIndex, val suggestedTypeName: DeclaredTypeName?) : ResolutionContext

Constructors

Link copied to clipboard
fun SwiftResolutionContext(unit: BaseUnit, shapeIndex: ShapeIndex, suggestedTypeName: DeclaredTypeName?)

Functions

Link copied to clipboard
open fun findAllProperties(shape: NodeShape): List<PropertyShape>
Link copied to clipboard
open fun findDeclaringUnit(element: DomainElement): BaseUnit
Link copied to clipboard
open fun findImportingUnit(element: DomainElement, allUnits: List<BaseUnit>): BaseUnit?
Link copied to clipboard
open fun findInheritingShapes(shape: Shape): List<Shape>
Link copied to clipboard
open fun findProperties(shape: NodeShape): List<PropertyShape>
Link copied to clipboard
open fun findRootShape(shape: Shape): Shape
Link copied to clipboard
open fun findSuperShapeOrNull(shape: Shape): Shape?
Link copied to clipboard
open fun getReferenceTarget(shape: Shape): Shape?
Link copied to clipboard
open fun hasInherited(shape: Shape): Boolean
Link copied to clipboard
open fun hasNoInherited(shape: Shape): Boolean
Link copied to clipboard
open fun hasNoInheriting(shape: Shape): Boolean
Link copied to clipboard
open fun resolveRef(name: String, source: DomainElement): Pair<DomainElement, BaseUnit>?

Properties

Link copied to clipboard
open override val shapeIndex: ShapeIndex
Link copied to clipboard
val suggestedTypeName: DeclaredTypeName?
Link copied to clipboard
open override val unit: BaseUnit