Build Information
Failed to build ElkSwift, reference main (32f804), with Swift 6.0 for macOS (SPM) on 22 Apr 2026 08:46:20 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64Build Log
889 | if let node = kge as? ElkNode {
890 | configureWithDefaultValues(node)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:980:13: warning: variable 'allElements' was never mutated; consider changing to 'let' constant
978 | */
979 | package static func applyVisitors(_ graph: ElkNode, visitors: [IGraphElementVisitor]) throws {
980 | var allElements = ElkGraphUtil.propertiesSkippingIteratorFor(graph, true).makeIterator()
| `- warning: variable 'allElements' was never mutated; consider changing to 'let' constant
981 | while let nextElement = allElements.next() {
982 | if let graphElement = nextElement as? ElkGraphElement {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:109:29: warning: conditional cast from 'Double' to 'Double' always succeeds
107 | extension Number {
108 | package var doubleValue: Double {
109 | if let value = self as? Double {
| `- warning: conditional cast from 'Double' to 'Double' always succeeds
110 | return value
111 | } else if let value = self as? Float {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:111:36: warning: cast from 'Double' to unrelated type 'Float' always fails
109 | if let value = self as? Double {
110 | return value
111 | } else if let value = self as? Float {
| `- warning: cast from 'Double' to unrelated type 'Float' always fails
112 | return Double(value)
113 | } else if let value = self as? Int {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:113:36: warning: cast from 'Double' to unrelated type 'Int' always fails
111 | } else if let value = self as? Float {
112 | return Double(value)
113 | } else if let value = self as? Int {
| `- warning: cast from 'Double' to unrelated type 'Int' always fails
114 | return Double(value)
115 | } else if let value = self as? Int64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:115:36: warning: cast from 'Double' to unrelated type 'Int64' always fails
113 | } else if let value = self as? Int {
114 | return Double(value)
115 | } else if let value = self as? Int64 {
| `- warning: cast from 'Double' to unrelated type 'Int64' always fails
116 | return Double(value)
117 | } else if let value = self as? Int32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:117:36: warning: cast from 'Double' to unrelated type 'Int32' always fails
115 | } else if let value = self as? Int64 {
116 | return Double(value)
117 | } else if let value = self as? Int32 {
| `- warning: cast from 'Double' to unrelated type 'Int32' always fails
118 | return Double(value)
119 | } else if let value = self as? Int16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:119:36: warning: cast from 'Double' to unrelated type 'Int16' always fails
117 | } else if let value = self as? Int32 {
118 | return Double(value)
119 | } else if let value = self as? Int16 {
| `- warning: cast from 'Double' to unrelated type 'Int16' always fails
120 | return Double(value)
121 | } else if let value = self as? Int8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:121:36: warning: cast from 'Double' to unrelated type 'Int8' always fails
119 | } else if let value = self as? Int16 {
120 | return Double(value)
121 | } else if let value = self as? Int8 {
| `- warning: cast from 'Double' to unrelated type 'Int8' always fails
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:123:36: warning: cast from 'Double' to unrelated type 'UInt64' always fails
121 | } else if let value = self as? Int8 {
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
| `- warning: cast from 'Double' to unrelated type 'UInt64' always fails
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:125:36: warning: cast from 'Double' to unrelated type 'UInt32' always fails
123 | } else if let value = self as? UInt64 {
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
| `- warning: cast from 'Double' to unrelated type 'UInt32' always fails
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:127:36: warning: cast from 'Double' to unrelated type 'UInt16' always fails
125 | } else if let value = self as? UInt32 {
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
| `- warning: cast from 'Double' to unrelated type 'UInt16' always fails
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:129:36: warning: cast from 'Double' to unrelated type 'UInt8' always fails
127 | } else if let value = self as? UInt16 {
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
| `- warning: cast from 'Double' to unrelated type 'UInt8' always fails
130 | return Double(value)
131 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_PropertyConstantsDelegator.swift:24:66: warning: expression implicitly coerced from 'Any?' to 'Any'
22 | for optionId in algorithmData.getKnownOptionIds() {
23 | let defaultValue = algorithmData.getDefaultValue(optionId)
24 | let delegate = Property<Any>(optionId, defaultValue: defaultValue)
| |- warning: expression implicitly coerced from 'Any?' to 'Any'
| |- note: provide a default value to avoid this warning
| |- note: force-unwrap the value to avoid this warning
| `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
25 | delegator.addDelegate(delegate)
26 | }
[400/413] Compiling ElkSwift org_eclipse_elk_core_util_ExclusiveBounds.swift
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_AbstractRandomListAccessor.swift:96:13: warning: immutable value 'i' was never used; consider replacing with '_' or removing it
94 | */
95 | package func ensureListSize(size: Int) {
96 | for i in list.count..<size {
| `- warning: immutable value 'i' was never used; consider replacing with '_' or removing it
97 | list.append(provideDefault())
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:226:13: warning: variable 'newSize' was never mutated; consider changing to 'let' constant
224 | let oldSize = KVector(node.width, node.height)
225 |
226 | var newSize = effectiveMinSizeConstraintFor(node)
| `- warning: variable 'newSize' was never mutated; consider changing to 'let' constant
227 | newSize.x = max(newSize.x, newWidth)
228 | newSize.y = max(newSize.y, newHeight)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:322:17: warning: variable 'minSize' was never mutated; consider changing to 'let' constant
320 | let sizeOptions: SizeOptions = node.getProperty(CoreOptions.NODE_SIZE_OPTIONS) ?? []
321 | let minSizeVec: KVector = node.getProperty(CoreOptions.NODE_SIZE_MINIMUM) ?? KVector()
322 | var minSize = KVector(minSizeVec.x, minSizeVec.y)
| `- warning: variable 'minSize' was never mutated; consider changing to 'let' constant
323 |
324 | // If minimum width or height are not set, maybe default to default values
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:469:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
467 | }
468 |
469 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
470 |
471 | if let sourcePort = ElkGraphUtil.connectableShapeToPort(edge.sources[0]) {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:501:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
499 |
500 | // Collection for the junction points of the current edge
501 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
502 |
503 | // Store the points of the edge in a map for efficiency
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:610:13: warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
608 | */
609 | package static func getPoints(_ section: ElkEdgeSection) -> [KVector] {
610 | let n = section.bendPoints.count + 2
| `- warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
611 | var points: [KVector] = []
612 |
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:687:28: warning: result of call to 'offset' is unused
685 | // Junction points
686 | if let junctionPoints: KVectorChain = edge.getProperty(CoreOptions.JUNCTION_POINTS) {
687 | junctionPoints.offset(xoffset, yoffset)
| `- warning: result of call to 'offset' is unused
688 | }
689 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:775:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
773 | package static func toAbsolute(_ point: KVector, parent: ElkNode?) -> KVector {
774 | var node = parent
775 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
776 | while let currentNode = node {
777 | resultPoint.add(currentNode.x, currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:792:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
790 | package static func toRelative(_ point: KVector, parent: ElkNode?) -> KVector {
791 | var node = parent
792 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
793 | while let currentNode = node {
794 | resultPoint.add(-currentNode.x, -currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:888:30: warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
886 | var kgeIt = ElkGraphUtil.allContents(graph).makeIterator()
887 | while let kge = kgeIt.next() {
888 | if let kge = kge as? ElkGraphElement {
| `- warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
889 | if let node = kge as? ElkNode {
890 | configureWithDefaultValues(node)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:980:13: warning: variable 'allElements' was never mutated; consider changing to 'let' constant
978 | */
979 | package static func applyVisitors(_ graph: ElkNode, visitors: [IGraphElementVisitor]) throws {
980 | var allElements = ElkGraphUtil.propertiesSkippingIteratorFor(graph, true).makeIterator()
| `- warning: variable 'allElements' was never mutated; consider changing to 'let' constant
981 | while let nextElement = allElements.next() {
982 | if let graphElement = nextElement as? ElkGraphElement {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:109:29: warning: conditional cast from 'Double' to 'Double' always succeeds
107 | extension Number {
108 | package var doubleValue: Double {
109 | if let value = self as? Double {
| `- warning: conditional cast from 'Double' to 'Double' always succeeds
110 | return value
111 | } else if let value = self as? Float {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:111:36: warning: cast from 'Double' to unrelated type 'Float' always fails
109 | if let value = self as? Double {
110 | return value
111 | } else if let value = self as? Float {
| `- warning: cast from 'Double' to unrelated type 'Float' always fails
112 | return Double(value)
113 | } else if let value = self as? Int {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:113:36: warning: cast from 'Double' to unrelated type 'Int' always fails
111 | } else if let value = self as? Float {
112 | return Double(value)
113 | } else if let value = self as? Int {
| `- warning: cast from 'Double' to unrelated type 'Int' always fails
114 | return Double(value)
115 | } else if let value = self as? Int64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:115:36: warning: cast from 'Double' to unrelated type 'Int64' always fails
113 | } else if let value = self as? Int {
114 | return Double(value)
115 | } else if let value = self as? Int64 {
| `- warning: cast from 'Double' to unrelated type 'Int64' always fails
116 | return Double(value)
117 | } else if let value = self as? Int32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:117:36: warning: cast from 'Double' to unrelated type 'Int32' always fails
115 | } else if let value = self as? Int64 {
116 | return Double(value)
117 | } else if let value = self as? Int32 {
| `- warning: cast from 'Double' to unrelated type 'Int32' always fails
118 | return Double(value)
119 | } else if let value = self as? Int16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:119:36: warning: cast from 'Double' to unrelated type 'Int16' always fails
117 | } else if let value = self as? Int32 {
118 | return Double(value)
119 | } else if let value = self as? Int16 {
| `- warning: cast from 'Double' to unrelated type 'Int16' always fails
120 | return Double(value)
121 | } else if let value = self as? Int8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:121:36: warning: cast from 'Double' to unrelated type 'Int8' always fails
119 | } else if let value = self as? Int16 {
120 | return Double(value)
121 | } else if let value = self as? Int8 {
| `- warning: cast from 'Double' to unrelated type 'Int8' always fails
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:123:36: warning: cast from 'Double' to unrelated type 'UInt64' always fails
121 | } else if let value = self as? Int8 {
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
| `- warning: cast from 'Double' to unrelated type 'UInt64' always fails
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:125:36: warning: cast from 'Double' to unrelated type 'UInt32' always fails
123 | } else if let value = self as? UInt64 {
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
| `- warning: cast from 'Double' to unrelated type 'UInt32' always fails
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:127:36: warning: cast from 'Double' to unrelated type 'UInt16' always fails
125 | } else if let value = self as? UInt32 {
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
| `- warning: cast from 'Double' to unrelated type 'UInt16' always fails
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:129:36: warning: cast from 'Double' to unrelated type 'UInt8' always fails
127 | } else if let value = self as? UInt16 {
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
| `- warning: cast from 'Double' to unrelated type 'UInt8' always fails
130 | return Double(value)
131 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_PropertyConstantsDelegator.swift:24:66: warning: expression implicitly coerced from 'Any?' to 'Any'
22 | for optionId in algorithmData.getKnownOptionIds() {
23 | let defaultValue = algorithmData.getDefaultValue(optionId)
24 | let delegate = Property<Any>(optionId, defaultValue: defaultValue)
| |- warning: expression implicitly coerced from 'Any?' to 'Any'
| |- note: provide a default value to avoid this warning
| |- note: force-unwrap the value to avoid this warning
| `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
25 | delegator.addDelegate(delegate)
26 | }
[401/413] Compiling ElkSwift org_eclipse_elk_core_util_IDataObject.swift
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_AbstractRandomListAccessor.swift:96:13: warning: immutable value 'i' was never used; consider replacing with '_' or removing it
94 | */
95 | package func ensureListSize(size: Int) {
96 | for i in list.count..<size {
| `- warning: immutable value 'i' was never used; consider replacing with '_' or removing it
97 | list.append(provideDefault())
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:226:13: warning: variable 'newSize' was never mutated; consider changing to 'let' constant
224 | let oldSize = KVector(node.width, node.height)
225 |
226 | var newSize = effectiveMinSizeConstraintFor(node)
| `- warning: variable 'newSize' was never mutated; consider changing to 'let' constant
227 | newSize.x = max(newSize.x, newWidth)
228 | newSize.y = max(newSize.y, newHeight)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:322:17: warning: variable 'minSize' was never mutated; consider changing to 'let' constant
320 | let sizeOptions: SizeOptions = node.getProperty(CoreOptions.NODE_SIZE_OPTIONS) ?? []
321 | let minSizeVec: KVector = node.getProperty(CoreOptions.NODE_SIZE_MINIMUM) ?? KVector()
322 | var minSize = KVector(minSizeVec.x, minSizeVec.y)
| `- warning: variable 'minSize' was never mutated; consider changing to 'let' constant
323 |
324 | // If minimum width or height are not set, maybe default to default values
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:469:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
467 | }
468 |
469 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
470 |
471 | if let sourcePort = ElkGraphUtil.connectableShapeToPort(edge.sources[0]) {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:501:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
499 |
500 | // Collection for the junction points of the current edge
501 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
502 |
503 | // Store the points of the edge in a map for efficiency
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:610:13: warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
608 | */
609 | package static func getPoints(_ section: ElkEdgeSection) -> [KVector] {
610 | let n = section.bendPoints.count + 2
| `- warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
611 | var points: [KVector] = []
612 |
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:687:28: warning: result of call to 'offset' is unused
685 | // Junction points
686 | if let junctionPoints: KVectorChain = edge.getProperty(CoreOptions.JUNCTION_POINTS) {
687 | junctionPoints.offset(xoffset, yoffset)
| `- warning: result of call to 'offset' is unused
688 | }
689 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:775:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
773 | package static func toAbsolute(_ point: KVector, parent: ElkNode?) -> KVector {
774 | var node = parent
775 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
776 | while let currentNode = node {
777 | resultPoint.add(currentNode.x, currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:792:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
790 | package static func toRelative(_ point: KVector, parent: ElkNode?) -> KVector {
791 | var node = parent
792 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
793 | while let currentNode = node {
794 | resultPoint.add(-currentNode.x, -currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:888:30: warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
886 | var kgeIt = ElkGraphUtil.allContents(graph).makeIterator()
887 | while let kge = kgeIt.next() {
888 | if let kge = kge as? ElkGraphElement {
| `- warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
889 | if let node = kge as? ElkNode {
890 | configureWithDefaultValues(node)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:980:13: warning: variable 'allElements' was never mutated; consider changing to 'let' constant
978 | */
979 | package static func applyVisitors(_ graph: ElkNode, visitors: [IGraphElementVisitor]) throws {
980 | var allElements = ElkGraphUtil.propertiesSkippingIteratorFor(graph, true).makeIterator()
| `- warning: variable 'allElements' was never mutated; consider changing to 'let' constant
981 | while let nextElement = allElements.next() {
982 | if let graphElement = nextElement as? ElkGraphElement {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:109:29: warning: conditional cast from 'Double' to 'Double' always succeeds
107 | extension Number {
108 | package var doubleValue: Double {
109 | if let value = self as? Double {
| `- warning: conditional cast from 'Double' to 'Double' always succeeds
110 | return value
111 | } else if let value = self as? Float {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:111:36: warning: cast from 'Double' to unrelated type 'Float' always fails
109 | if let value = self as? Double {
110 | return value
111 | } else if let value = self as? Float {
| `- warning: cast from 'Double' to unrelated type 'Float' always fails
112 | return Double(value)
113 | } else if let value = self as? Int {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:113:36: warning: cast from 'Double' to unrelated type 'Int' always fails
111 | } else if let value = self as? Float {
112 | return Double(value)
113 | } else if let value = self as? Int {
| `- warning: cast from 'Double' to unrelated type 'Int' always fails
114 | return Double(value)
115 | } else if let value = self as? Int64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:115:36: warning: cast from 'Double' to unrelated type 'Int64' always fails
113 | } else if let value = self as? Int {
114 | return Double(value)
115 | } else if let value = self as? Int64 {
| `- warning: cast from 'Double' to unrelated type 'Int64' always fails
116 | return Double(value)
117 | } else if let value = self as? Int32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:117:36: warning: cast from 'Double' to unrelated type 'Int32' always fails
115 | } else if let value = self as? Int64 {
116 | return Double(value)
117 | } else if let value = self as? Int32 {
| `- warning: cast from 'Double' to unrelated type 'Int32' always fails
118 | return Double(value)
119 | } else if let value = self as? Int16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:119:36: warning: cast from 'Double' to unrelated type 'Int16' always fails
117 | } else if let value = self as? Int32 {
118 | return Double(value)
119 | } else if let value = self as? Int16 {
| `- warning: cast from 'Double' to unrelated type 'Int16' always fails
120 | return Double(value)
121 | } else if let value = self as? Int8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:121:36: warning: cast from 'Double' to unrelated type 'Int8' always fails
119 | } else if let value = self as? Int16 {
120 | return Double(value)
121 | } else if let value = self as? Int8 {
| `- warning: cast from 'Double' to unrelated type 'Int8' always fails
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:123:36: warning: cast from 'Double' to unrelated type 'UInt64' always fails
121 | } else if let value = self as? Int8 {
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
| `- warning: cast from 'Double' to unrelated type 'UInt64' always fails
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:125:36: warning: cast from 'Double' to unrelated type 'UInt32' always fails
123 | } else if let value = self as? UInt64 {
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
| `- warning: cast from 'Double' to unrelated type 'UInt32' always fails
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:127:36: warning: cast from 'Double' to unrelated type 'UInt16' always fails
125 | } else if let value = self as? UInt32 {
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
| `- warning: cast from 'Double' to unrelated type 'UInt16' always fails
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:129:36: warning: cast from 'Double' to unrelated type 'UInt8' always fails
127 | } else if let value = self as? UInt16 {
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
| `- warning: cast from 'Double' to unrelated type 'UInt8' always fails
130 | return Double(value)
131 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_PropertyConstantsDelegator.swift:24:66: warning: expression implicitly coerced from 'Any?' to 'Any'
22 | for optionId in algorithmData.getKnownOptionIds() {
23 | let defaultValue = algorithmData.getDefaultValue(optionId)
24 | let delegate = Property<Any>(optionId, defaultValue: defaultValue)
| |- warning: expression implicitly coerced from 'Any?' to 'Any'
| |- note: provide a default value to avoid this warning
| |- note: force-unwrap the value to avoid this warning
| `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
25 | delegator.addDelegate(delegate)
26 | }
[402/413] Compiling ElkSwift org_eclipse_elk_core_util_IElkCancelIndicator.swift
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_AbstractRandomListAccessor.swift:96:13: warning: immutable value 'i' was never used; consider replacing with '_' or removing it
94 | */
95 | package func ensureListSize(size: Int) {
96 | for i in list.count..<size {
| `- warning: immutable value 'i' was never used; consider replacing with '_' or removing it
97 | list.append(provideDefault())
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:226:13: warning: variable 'newSize' was never mutated; consider changing to 'let' constant
224 | let oldSize = KVector(node.width, node.height)
225 |
226 | var newSize = effectiveMinSizeConstraintFor(node)
| `- warning: variable 'newSize' was never mutated; consider changing to 'let' constant
227 | newSize.x = max(newSize.x, newWidth)
228 | newSize.y = max(newSize.y, newHeight)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:322:17: warning: variable 'minSize' was never mutated; consider changing to 'let' constant
320 | let sizeOptions: SizeOptions = node.getProperty(CoreOptions.NODE_SIZE_OPTIONS) ?? []
321 | let minSizeVec: KVector = node.getProperty(CoreOptions.NODE_SIZE_MINIMUM) ?? KVector()
322 | var minSize = KVector(minSizeVec.x, minSizeVec.y)
| `- warning: variable 'minSize' was never mutated; consider changing to 'let' constant
323 |
324 | // If minimum width or height are not set, maybe default to default values
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:469:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
467 | }
468 |
469 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
470 |
471 | if let sourcePort = ElkGraphUtil.connectableShapeToPort(edge.sources[0]) {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:501:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
499 |
500 | // Collection for the junction points of the current edge
501 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
502 |
503 | // Store the points of the edge in a map for efficiency
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:610:13: warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
608 | */
609 | package static func getPoints(_ section: ElkEdgeSection) -> [KVector] {
610 | let n = section.bendPoints.count + 2
| `- warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
611 | var points: [KVector] = []
612 |
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:687:28: warning: result of call to 'offset' is unused
685 | // Junction points
686 | if let junctionPoints: KVectorChain = edge.getProperty(CoreOptions.JUNCTION_POINTS) {
687 | junctionPoints.offset(xoffset, yoffset)
| `- warning: result of call to 'offset' is unused
688 | }
689 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:775:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
773 | package static func toAbsolute(_ point: KVector, parent: ElkNode?) -> KVector {
774 | var node = parent
775 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
776 | while let currentNode = node {
777 | resultPoint.add(currentNode.x, currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:792:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
790 | package static func toRelative(_ point: KVector, parent: ElkNode?) -> KVector {
791 | var node = parent
792 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
793 | while let currentNode = node {
794 | resultPoint.add(-currentNode.x, -currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:888:30: warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
886 | var kgeIt = ElkGraphUtil.allContents(graph).makeIterator()
887 | while let kge = kgeIt.next() {
888 | if let kge = kge as? ElkGraphElement {
| `- warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
889 | if let node = kge as? ElkNode {
890 | configureWithDefaultValues(node)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:980:13: warning: variable 'allElements' was never mutated; consider changing to 'let' constant
978 | */
979 | package static func applyVisitors(_ graph: ElkNode, visitors: [IGraphElementVisitor]) throws {
980 | var allElements = ElkGraphUtil.propertiesSkippingIteratorFor(graph, true).makeIterator()
| `- warning: variable 'allElements' was never mutated; consider changing to 'let' constant
981 | while let nextElement = allElements.next() {
982 | if let graphElement = nextElement as? ElkGraphElement {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:109:29: warning: conditional cast from 'Double' to 'Double' always succeeds
107 | extension Number {
108 | package var doubleValue: Double {
109 | if let value = self as? Double {
| `- warning: conditional cast from 'Double' to 'Double' always succeeds
110 | return value
111 | } else if let value = self as? Float {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:111:36: warning: cast from 'Double' to unrelated type 'Float' always fails
109 | if let value = self as? Double {
110 | return value
111 | } else if let value = self as? Float {
| `- warning: cast from 'Double' to unrelated type 'Float' always fails
112 | return Double(value)
113 | } else if let value = self as? Int {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:113:36: warning: cast from 'Double' to unrelated type 'Int' always fails
111 | } else if let value = self as? Float {
112 | return Double(value)
113 | } else if let value = self as? Int {
| `- warning: cast from 'Double' to unrelated type 'Int' always fails
114 | return Double(value)
115 | } else if let value = self as? Int64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:115:36: warning: cast from 'Double' to unrelated type 'Int64' always fails
113 | } else if let value = self as? Int {
114 | return Double(value)
115 | } else if let value = self as? Int64 {
| `- warning: cast from 'Double' to unrelated type 'Int64' always fails
116 | return Double(value)
117 | } else if let value = self as? Int32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:117:36: warning: cast from 'Double' to unrelated type 'Int32' always fails
115 | } else if let value = self as? Int64 {
116 | return Double(value)
117 | } else if let value = self as? Int32 {
| `- warning: cast from 'Double' to unrelated type 'Int32' always fails
118 | return Double(value)
119 | } else if let value = self as? Int16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:119:36: warning: cast from 'Double' to unrelated type 'Int16' always fails
117 | } else if let value = self as? Int32 {
118 | return Double(value)
119 | } else if let value = self as? Int16 {
| `- warning: cast from 'Double' to unrelated type 'Int16' always fails
120 | return Double(value)
121 | } else if let value = self as? Int8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:121:36: warning: cast from 'Double' to unrelated type 'Int8' always fails
119 | } else if let value = self as? Int16 {
120 | return Double(value)
121 | } else if let value = self as? Int8 {
| `- warning: cast from 'Double' to unrelated type 'Int8' always fails
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:123:36: warning: cast from 'Double' to unrelated type 'UInt64' always fails
121 | } else if let value = self as? Int8 {
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
| `- warning: cast from 'Double' to unrelated type 'UInt64' always fails
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:125:36: warning: cast from 'Double' to unrelated type 'UInt32' always fails
123 | } else if let value = self as? UInt64 {
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
| `- warning: cast from 'Double' to unrelated type 'UInt32' always fails
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:127:36: warning: cast from 'Double' to unrelated type 'UInt16' always fails
125 | } else if let value = self as? UInt32 {
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
| `- warning: cast from 'Double' to unrelated type 'UInt16' always fails
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:129:36: warning: cast from 'Double' to unrelated type 'UInt8' always fails
127 | } else if let value = self as? UInt16 {
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
| `- warning: cast from 'Double' to unrelated type 'UInt8' always fails
130 | return Double(value)
131 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_PropertyConstantsDelegator.swift:24:66: warning: expression implicitly coerced from 'Any?' to 'Any'
22 | for optionId in algorithmData.getKnownOptionIds() {
23 | let defaultValue = algorithmData.getDefaultValue(optionId)
24 | let delegate = Property<Any>(optionId, defaultValue: defaultValue)
| |- warning: expression implicitly coerced from 'Any?' to 'Any'
| |- note: provide a default value to avoid this warning
| |- note: force-unwrap the value to avoid this warning
| `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
25 | delegator.addDelegate(delegate)
26 | }
[403/413] Compiling ElkSwift org_eclipse_elk_core_util_IElkProgressMonitor.swift
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_AbstractRandomListAccessor.swift:96:13: warning: immutable value 'i' was never used; consider replacing with '_' or removing it
94 | */
95 | package func ensureListSize(size: Int) {
96 | for i in list.count..<size {
| `- warning: immutable value 'i' was never used; consider replacing with '_' or removing it
97 | list.append(provideDefault())
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:226:13: warning: variable 'newSize' was never mutated; consider changing to 'let' constant
224 | let oldSize = KVector(node.width, node.height)
225 |
226 | var newSize = effectiveMinSizeConstraintFor(node)
| `- warning: variable 'newSize' was never mutated; consider changing to 'let' constant
227 | newSize.x = max(newSize.x, newWidth)
228 | newSize.y = max(newSize.y, newHeight)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:322:17: warning: variable 'minSize' was never mutated; consider changing to 'let' constant
320 | let sizeOptions: SizeOptions = node.getProperty(CoreOptions.NODE_SIZE_OPTIONS) ?? []
321 | let minSizeVec: KVector = node.getProperty(CoreOptions.NODE_SIZE_MINIMUM) ?? KVector()
322 | var minSize = KVector(minSizeVec.x, minSizeVec.y)
| `- warning: variable 'minSize' was never mutated; consider changing to 'let' constant
323 |
324 | // If minimum width or height are not set, maybe default to default values
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:469:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
467 | }
468 |
469 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
470 |
471 | if let sourcePort = ElkGraphUtil.connectableShapeToPort(edge.sources[0]) {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:501:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
499 |
500 | // Collection for the junction points of the current edge
501 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
502 |
503 | // Store the points of the edge in a map for efficiency
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:610:13: warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
608 | */
609 | package static func getPoints(_ section: ElkEdgeSection) -> [KVector] {
610 | let n = section.bendPoints.count + 2
| `- warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
611 | var points: [KVector] = []
612 |
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:687:28: warning: result of call to 'offset' is unused
685 | // Junction points
686 | if let junctionPoints: KVectorChain = edge.getProperty(CoreOptions.JUNCTION_POINTS) {
687 | junctionPoints.offset(xoffset, yoffset)
| `- warning: result of call to 'offset' is unused
688 | }
689 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:775:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
773 | package static func toAbsolute(_ point: KVector, parent: ElkNode?) -> KVector {
774 | var node = parent
775 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
776 | while let currentNode = node {
777 | resultPoint.add(currentNode.x, currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:792:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
790 | package static func toRelative(_ point: KVector, parent: ElkNode?) -> KVector {
791 | var node = parent
792 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
793 | while let currentNode = node {
794 | resultPoint.add(-currentNode.x, -currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:888:30: warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
886 | var kgeIt = ElkGraphUtil.allContents(graph).makeIterator()
887 | while let kge = kgeIt.next() {
888 | if let kge = kge as? ElkGraphElement {
| `- warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
889 | if let node = kge as? ElkNode {
890 | configureWithDefaultValues(node)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:980:13: warning: variable 'allElements' was never mutated; consider changing to 'let' constant
978 | */
979 | package static func applyVisitors(_ graph: ElkNode, visitors: [IGraphElementVisitor]) throws {
980 | var allElements = ElkGraphUtil.propertiesSkippingIteratorFor(graph, true).makeIterator()
| `- warning: variable 'allElements' was never mutated; consider changing to 'let' constant
981 | while let nextElement = allElements.next() {
982 | if let graphElement = nextElement as? ElkGraphElement {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:109:29: warning: conditional cast from 'Double' to 'Double' always succeeds
107 | extension Number {
108 | package var doubleValue: Double {
109 | if let value = self as? Double {
| `- warning: conditional cast from 'Double' to 'Double' always succeeds
110 | return value
111 | } else if let value = self as? Float {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:111:36: warning: cast from 'Double' to unrelated type 'Float' always fails
109 | if let value = self as? Double {
110 | return value
111 | } else if let value = self as? Float {
| `- warning: cast from 'Double' to unrelated type 'Float' always fails
112 | return Double(value)
113 | } else if let value = self as? Int {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:113:36: warning: cast from 'Double' to unrelated type 'Int' always fails
111 | } else if let value = self as? Float {
112 | return Double(value)
113 | } else if let value = self as? Int {
| `- warning: cast from 'Double' to unrelated type 'Int' always fails
114 | return Double(value)
115 | } else if let value = self as? Int64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:115:36: warning: cast from 'Double' to unrelated type 'Int64' always fails
113 | } else if let value = self as? Int {
114 | return Double(value)
115 | } else if let value = self as? Int64 {
| `- warning: cast from 'Double' to unrelated type 'Int64' always fails
116 | return Double(value)
117 | } else if let value = self as? Int32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:117:36: warning: cast from 'Double' to unrelated type 'Int32' always fails
115 | } else if let value = self as? Int64 {
116 | return Double(value)
117 | } else if let value = self as? Int32 {
| `- warning: cast from 'Double' to unrelated type 'Int32' always fails
118 | return Double(value)
119 | } else if let value = self as? Int16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:119:36: warning: cast from 'Double' to unrelated type 'Int16' always fails
117 | } else if let value = self as? Int32 {
118 | return Double(value)
119 | } else if let value = self as? Int16 {
| `- warning: cast from 'Double' to unrelated type 'Int16' always fails
120 | return Double(value)
121 | } else if let value = self as? Int8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:121:36: warning: cast from 'Double' to unrelated type 'Int8' always fails
119 | } else if let value = self as? Int16 {
120 | return Double(value)
121 | } else if let value = self as? Int8 {
| `- warning: cast from 'Double' to unrelated type 'Int8' always fails
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:123:36: warning: cast from 'Double' to unrelated type 'UInt64' always fails
121 | } else if let value = self as? Int8 {
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
| `- warning: cast from 'Double' to unrelated type 'UInt64' always fails
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:125:36: warning: cast from 'Double' to unrelated type 'UInt32' always fails
123 | } else if let value = self as? UInt64 {
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
| `- warning: cast from 'Double' to unrelated type 'UInt32' always fails
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:127:36: warning: cast from 'Double' to unrelated type 'UInt16' always fails
125 | } else if let value = self as? UInt32 {
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
| `- warning: cast from 'Double' to unrelated type 'UInt16' always fails
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:129:36: warning: cast from 'Double' to unrelated type 'UInt8' always fails
127 | } else if let value = self as? UInt16 {
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
| `- warning: cast from 'Double' to unrelated type 'UInt8' always fails
130 | return Double(value)
131 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_PropertyConstantsDelegator.swift:24:66: warning: expression implicitly coerced from 'Any?' to 'Any'
22 | for optionId in algorithmData.getKnownOptionIds() {
23 | let defaultValue = algorithmData.getDefaultValue(optionId)
24 | let delegate = Property<Any>(optionId, defaultValue: defaultValue)
| |- warning: expression implicitly coerced from 'Any?' to 'Any'
| |- note: provide a default value to avoid this warning
| |- note: force-unwrap the value to avoid this warning
| `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
25 | delegator.addDelegate(delegate)
26 | }
[404/413] Compiling ElkSwift org_eclipse_elk_core_util_IFactory.swift
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_AbstractRandomListAccessor.swift:96:13: warning: immutable value 'i' was never used; consider replacing with '_' or removing it
94 | */
95 | package func ensureListSize(size: Int) {
96 | for i in list.count..<size {
| `- warning: immutable value 'i' was never used; consider replacing with '_' or removing it
97 | list.append(provideDefault())
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:226:13: warning: variable 'newSize' was never mutated; consider changing to 'let' constant
224 | let oldSize = KVector(node.width, node.height)
225 |
226 | var newSize = effectiveMinSizeConstraintFor(node)
| `- warning: variable 'newSize' was never mutated; consider changing to 'let' constant
227 | newSize.x = max(newSize.x, newWidth)
228 | newSize.y = max(newSize.y, newHeight)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:322:17: warning: variable 'minSize' was never mutated; consider changing to 'let' constant
320 | let sizeOptions: SizeOptions = node.getProperty(CoreOptions.NODE_SIZE_OPTIONS) ?? []
321 | let minSizeVec: KVector = node.getProperty(CoreOptions.NODE_SIZE_MINIMUM) ?? KVector()
322 | var minSize = KVector(minSizeVec.x, minSizeVec.y)
| `- warning: variable 'minSize' was never mutated; consider changing to 'let' constant
323 |
324 | // If minimum width or height are not set, maybe default to default values
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:469:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
467 | }
468 |
469 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
470 |
471 | if let sourcePort = ElkGraphUtil.connectableShapeToPort(edge.sources[0]) {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:501:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
499 |
500 | // Collection for the junction points of the current edge
501 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
502 |
503 | // Store the points of the edge in a map for efficiency
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:610:13: warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
608 | */
609 | package static func getPoints(_ section: ElkEdgeSection) -> [KVector] {
610 | let n = section.bendPoints.count + 2
| `- warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
611 | var points: [KVector] = []
612 |
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:687:28: warning: result of call to 'offset' is unused
685 | // Junction points
686 | if let junctionPoints: KVectorChain = edge.getProperty(CoreOptions.JUNCTION_POINTS) {
687 | junctionPoints.offset(xoffset, yoffset)
| `- warning: result of call to 'offset' is unused
688 | }
689 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:775:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
773 | package static func toAbsolute(_ point: KVector, parent: ElkNode?) -> KVector {
774 | var node = parent
775 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
776 | while let currentNode = node {
777 | resultPoint.add(currentNode.x, currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:792:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
790 | package static func toRelative(_ point: KVector, parent: ElkNode?) -> KVector {
791 | var node = parent
792 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
793 | while let currentNode = node {
794 | resultPoint.add(-currentNode.x, -currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:888:30: warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
886 | var kgeIt = ElkGraphUtil.allContents(graph).makeIterator()
887 | while let kge = kgeIt.next() {
888 | if let kge = kge as? ElkGraphElement {
| `- warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
889 | if let node = kge as? ElkNode {
890 | configureWithDefaultValues(node)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:980:13: warning: variable 'allElements' was never mutated; consider changing to 'let' constant
978 | */
979 | package static func applyVisitors(_ graph: ElkNode, visitors: [IGraphElementVisitor]) throws {
980 | var allElements = ElkGraphUtil.propertiesSkippingIteratorFor(graph, true).makeIterator()
| `- warning: variable 'allElements' was never mutated; consider changing to 'let' constant
981 | while let nextElement = allElements.next() {
982 | if let graphElement = nextElement as? ElkGraphElement {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:109:29: warning: conditional cast from 'Double' to 'Double' always succeeds
107 | extension Number {
108 | package var doubleValue: Double {
109 | if let value = self as? Double {
| `- warning: conditional cast from 'Double' to 'Double' always succeeds
110 | return value
111 | } else if let value = self as? Float {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:111:36: warning: cast from 'Double' to unrelated type 'Float' always fails
109 | if let value = self as? Double {
110 | return value
111 | } else if let value = self as? Float {
| `- warning: cast from 'Double' to unrelated type 'Float' always fails
112 | return Double(value)
113 | } else if let value = self as? Int {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:113:36: warning: cast from 'Double' to unrelated type 'Int' always fails
111 | } else if let value = self as? Float {
112 | return Double(value)
113 | } else if let value = self as? Int {
| `- warning: cast from 'Double' to unrelated type 'Int' always fails
114 | return Double(value)
115 | } else if let value = self as? Int64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:115:36: warning: cast from 'Double' to unrelated type 'Int64' always fails
113 | } else if let value = self as? Int {
114 | return Double(value)
115 | } else if let value = self as? Int64 {
| `- warning: cast from 'Double' to unrelated type 'Int64' always fails
116 | return Double(value)
117 | } else if let value = self as? Int32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:117:36: warning: cast from 'Double' to unrelated type 'Int32' always fails
115 | } else if let value = self as? Int64 {
116 | return Double(value)
117 | } else if let value = self as? Int32 {
| `- warning: cast from 'Double' to unrelated type 'Int32' always fails
118 | return Double(value)
119 | } else if let value = self as? Int16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:119:36: warning: cast from 'Double' to unrelated type 'Int16' always fails
117 | } else if let value = self as? Int32 {
118 | return Double(value)
119 | } else if let value = self as? Int16 {
| `- warning: cast from 'Double' to unrelated type 'Int16' always fails
120 | return Double(value)
121 | } else if let value = self as? Int8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:121:36: warning: cast from 'Double' to unrelated type 'Int8' always fails
119 | } else if let value = self as? Int16 {
120 | return Double(value)
121 | } else if let value = self as? Int8 {
| `- warning: cast from 'Double' to unrelated type 'Int8' always fails
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:123:36: warning: cast from 'Double' to unrelated type 'UInt64' always fails
121 | } else if let value = self as? Int8 {
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
| `- warning: cast from 'Double' to unrelated type 'UInt64' always fails
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:125:36: warning: cast from 'Double' to unrelated type 'UInt32' always fails
123 | } else if let value = self as? UInt64 {
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
| `- warning: cast from 'Double' to unrelated type 'UInt32' always fails
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:127:36: warning: cast from 'Double' to unrelated type 'UInt16' always fails
125 | } else if let value = self as? UInt32 {
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
| `- warning: cast from 'Double' to unrelated type 'UInt16' always fails
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:129:36: warning: cast from 'Double' to unrelated type 'UInt8' always fails
127 | } else if let value = self as? UInt16 {
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
| `- warning: cast from 'Double' to unrelated type 'UInt8' always fails
130 | return Double(value)
131 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_PropertyConstantsDelegator.swift:24:66: warning: expression implicitly coerced from 'Any?' to 'Any'
22 | for optionId in algorithmData.getKnownOptionIds() {
23 | let defaultValue = algorithmData.getDefaultValue(optionId)
24 | let delegate = Property<Any>(optionId, defaultValue: defaultValue)
| |- warning: expression implicitly coerced from 'Any?' to 'Any'
| |- note: provide a default value to avoid this warning
| |- note: force-unwrap the value to avoid this warning
| `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
25 | delegator.addDelegate(delegate)
26 | }
[405/413] Compiling ElkSwift org_eclipse_elk_core_util_IGraphElementVisitor.swift
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_AbstractRandomListAccessor.swift:96:13: warning: immutable value 'i' was never used; consider replacing with '_' or removing it
94 | */
95 | package func ensureListSize(size: Int) {
96 | for i in list.count..<size {
| `- warning: immutable value 'i' was never used; consider replacing with '_' or removing it
97 | list.append(provideDefault())
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:226:13: warning: variable 'newSize' was never mutated; consider changing to 'let' constant
224 | let oldSize = KVector(node.width, node.height)
225 |
226 | var newSize = effectiveMinSizeConstraintFor(node)
| `- warning: variable 'newSize' was never mutated; consider changing to 'let' constant
227 | newSize.x = max(newSize.x, newWidth)
228 | newSize.y = max(newSize.y, newHeight)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:322:17: warning: variable 'minSize' was never mutated; consider changing to 'let' constant
320 | let sizeOptions: SizeOptions = node.getProperty(CoreOptions.NODE_SIZE_OPTIONS) ?? []
321 | let minSizeVec: KVector = node.getProperty(CoreOptions.NODE_SIZE_MINIMUM) ?? KVector()
322 | var minSize = KVector(minSizeVec.x, minSizeVec.y)
| `- warning: variable 'minSize' was never mutated; consider changing to 'let' constant
323 |
324 | // If minimum width or height are not set, maybe default to default values
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:469:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
467 | }
468 |
469 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
470 |
471 | if let sourcePort = ElkGraphUtil.connectableShapeToPort(edge.sources[0]) {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:501:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
499 |
500 | // Collection for the junction points of the current edge
501 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
502 |
503 | // Store the points of the edge in a map for efficiency
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:610:13: warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
608 | */
609 | package static func getPoints(_ section: ElkEdgeSection) -> [KVector] {
610 | let n = section.bendPoints.count + 2
| `- warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
611 | var points: [KVector] = []
612 |
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:687:28: warning: result of call to 'offset' is unused
685 | // Junction points
686 | if let junctionPoints: KVectorChain = edge.getProperty(CoreOptions.JUNCTION_POINTS) {
687 | junctionPoints.offset(xoffset, yoffset)
| `- warning: result of call to 'offset' is unused
688 | }
689 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:775:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
773 | package static func toAbsolute(_ point: KVector, parent: ElkNode?) -> KVector {
774 | var node = parent
775 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
776 | while let currentNode = node {
777 | resultPoint.add(currentNode.x, currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:792:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
790 | package static func toRelative(_ point: KVector, parent: ElkNode?) -> KVector {
791 | var node = parent
792 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
793 | while let currentNode = node {
794 | resultPoint.add(-currentNode.x, -currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:888:30: warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
886 | var kgeIt = ElkGraphUtil.allContents(graph).makeIterator()
887 | while let kge = kgeIt.next() {
888 | if let kge = kge as? ElkGraphElement {
| `- warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
889 | if let node = kge as? ElkNode {
890 | configureWithDefaultValues(node)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:980:13: warning: variable 'allElements' was never mutated; consider changing to 'let' constant
978 | */
979 | package static func applyVisitors(_ graph: ElkNode, visitors: [IGraphElementVisitor]) throws {
980 | var allElements = ElkGraphUtil.propertiesSkippingIteratorFor(graph, true).makeIterator()
| `- warning: variable 'allElements' was never mutated; consider changing to 'let' constant
981 | while let nextElement = allElements.next() {
982 | if let graphElement = nextElement as? ElkGraphElement {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:109:29: warning: conditional cast from 'Double' to 'Double' always succeeds
107 | extension Number {
108 | package var doubleValue: Double {
109 | if let value = self as? Double {
| `- warning: conditional cast from 'Double' to 'Double' always succeeds
110 | return value
111 | } else if let value = self as? Float {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:111:36: warning: cast from 'Double' to unrelated type 'Float' always fails
109 | if let value = self as? Double {
110 | return value
111 | } else if let value = self as? Float {
| `- warning: cast from 'Double' to unrelated type 'Float' always fails
112 | return Double(value)
113 | } else if let value = self as? Int {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:113:36: warning: cast from 'Double' to unrelated type 'Int' always fails
111 | } else if let value = self as? Float {
112 | return Double(value)
113 | } else if let value = self as? Int {
| `- warning: cast from 'Double' to unrelated type 'Int' always fails
114 | return Double(value)
115 | } else if let value = self as? Int64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:115:36: warning: cast from 'Double' to unrelated type 'Int64' always fails
113 | } else if let value = self as? Int {
114 | return Double(value)
115 | } else if let value = self as? Int64 {
| `- warning: cast from 'Double' to unrelated type 'Int64' always fails
116 | return Double(value)
117 | } else if let value = self as? Int32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:117:36: warning: cast from 'Double' to unrelated type 'Int32' always fails
115 | } else if let value = self as? Int64 {
116 | return Double(value)
117 | } else if let value = self as? Int32 {
| `- warning: cast from 'Double' to unrelated type 'Int32' always fails
118 | return Double(value)
119 | } else if let value = self as? Int16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:119:36: warning: cast from 'Double' to unrelated type 'Int16' always fails
117 | } else if let value = self as? Int32 {
118 | return Double(value)
119 | } else if let value = self as? Int16 {
| `- warning: cast from 'Double' to unrelated type 'Int16' always fails
120 | return Double(value)
121 | } else if let value = self as? Int8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:121:36: warning: cast from 'Double' to unrelated type 'Int8' always fails
119 | } else if let value = self as? Int16 {
120 | return Double(value)
121 | } else if let value = self as? Int8 {
| `- warning: cast from 'Double' to unrelated type 'Int8' always fails
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:123:36: warning: cast from 'Double' to unrelated type 'UInt64' always fails
121 | } else if let value = self as? Int8 {
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
| `- warning: cast from 'Double' to unrelated type 'UInt64' always fails
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:125:36: warning: cast from 'Double' to unrelated type 'UInt32' always fails
123 | } else if let value = self as? UInt64 {
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
| `- warning: cast from 'Double' to unrelated type 'UInt32' always fails
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:127:36: warning: cast from 'Double' to unrelated type 'UInt16' always fails
125 | } else if let value = self as? UInt32 {
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
| `- warning: cast from 'Double' to unrelated type 'UInt16' always fails
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:129:36: warning: cast from 'Double' to unrelated type 'UInt8' always fails
127 | } else if let value = self as? UInt16 {
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
| `- warning: cast from 'Double' to unrelated type 'UInt8' always fails
130 | return Double(value)
131 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_PropertyConstantsDelegator.swift:24:66: warning: expression implicitly coerced from 'Any?' to 'Any'
22 | for optionId in algorithmData.getKnownOptionIds() {
23 | let defaultValue = algorithmData.getDefaultValue(optionId)
24 | let delegate = Property<Any>(optionId, defaultValue: defaultValue)
| |- warning: expression implicitly coerced from 'Any?' to 'Any'
| |- note: provide a default value to avoid this warning
| |- note: force-unwrap the value to avoid this warning
| `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
25 | delegator.addDelegate(delegate)
26 | }
[406/413] Compiling ElkSwift org_eclipse_elk_core_util_IndividualSpacings.swift
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_AbstractRandomListAccessor.swift:96:13: warning: immutable value 'i' was never used; consider replacing with '_' or removing it
94 | */
95 | package func ensureListSize(size: Int) {
96 | for i in list.count..<size {
| `- warning: immutable value 'i' was never used; consider replacing with '_' or removing it
97 | list.append(provideDefault())
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:226:13: warning: variable 'newSize' was never mutated; consider changing to 'let' constant
224 | let oldSize = KVector(node.width, node.height)
225 |
226 | var newSize = effectiveMinSizeConstraintFor(node)
| `- warning: variable 'newSize' was never mutated; consider changing to 'let' constant
227 | newSize.x = max(newSize.x, newWidth)
228 | newSize.y = max(newSize.y, newHeight)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:322:17: warning: variable 'minSize' was never mutated; consider changing to 'let' constant
320 | let sizeOptions: SizeOptions = node.getProperty(CoreOptions.NODE_SIZE_OPTIONS) ?? []
321 | let minSizeVec: KVector = node.getProperty(CoreOptions.NODE_SIZE_MINIMUM) ?? KVector()
322 | var minSize = KVector(minSizeVec.x, minSizeVec.y)
| `- warning: variable 'minSize' was never mutated; consider changing to 'let' constant
323 |
324 | // If minimum width or height are not set, maybe default to default values
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:469:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
467 | }
468 |
469 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
470 |
471 | if let sourcePort = ElkGraphUtil.connectableShapeToPort(edge.sources[0]) {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:501:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
499 |
500 | // Collection for the junction points of the current edge
501 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
502 |
503 | // Store the points of the edge in a map for efficiency
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:610:13: warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
608 | */
609 | package static func getPoints(_ section: ElkEdgeSection) -> [KVector] {
610 | let n = section.bendPoints.count + 2
| `- warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
611 | var points: [KVector] = []
612 |
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:687:28: warning: result of call to 'offset' is unused
685 | // Junction points
686 | if let junctionPoints: KVectorChain = edge.getProperty(CoreOptions.JUNCTION_POINTS) {
687 | junctionPoints.offset(xoffset, yoffset)
| `- warning: result of call to 'offset' is unused
688 | }
689 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:775:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
773 | package static func toAbsolute(_ point: KVector, parent: ElkNode?) -> KVector {
774 | var node = parent
775 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
776 | while let currentNode = node {
777 | resultPoint.add(currentNode.x, currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:792:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
790 | package static func toRelative(_ point: KVector, parent: ElkNode?) -> KVector {
791 | var node = parent
792 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
793 | while let currentNode = node {
794 | resultPoint.add(-currentNode.x, -currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:888:30: warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
886 | var kgeIt = ElkGraphUtil.allContents(graph).makeIterator()
887 | while let kge = kgeIt.next() {
888 | if let kge = kge as? ElkGraphElement {
| `- warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
889 | if let node = kge as? ElkNode {
890 | configureWithDefaultValues(node)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:980:13: warning: variable 'allElements' was never mutated; consider changing to 'let' constant
978 | */
979 | package static func applyVisitors(_ graph: ElkNode, visitors: [IGraphElementVisitor]) throws {
980 | var allElements = ElkGraphUtil.propertiesSkippingIteratorFor(graph, true).makeIterator()
| `- warning: variable 'allElements' was never mutated; consider changing to 'let' constant
981 | while let nextElement = allElements.next() {
982 | if let graphElement = nextElement as? ElkGraphElement {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:109:29: warning: conditional cast from 'Double' to 'Double' always succeeds
107 | extension Number {
108 | package var doubleValue: Double {
109 | if let value = self as? Double {
| `- warning: conditional cast from 'Double' to 'Double' always succeeds
110 | return value
111 | } else if let value = self as? Float {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:111:36: warning: cast from 'Double' to unrelated type 'Float' always fails
109 | if let value = self as? Double {
110 | return value
111 | } else if let value = self as? Float {
| `- warning: cast from 'Double' to unrelated type 'Float' always fails
112 | return Double(value)
113 | } else if let value = self as? Int {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:113:36: warning: cast from 'Double' to unrelated type 'Int' always fails
111 | } else if let value = self as? Float {
112 | return Double(value)
113 | } else if let value = self as? Int {
| `- warning: cast from 'Double' to unrelated type 'Int' always fails
114 | return Double(value)
115 | } else if let value = self as? Int64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:115:36: warning: cast from 'Double' to unrelated type 'Int64' always fails
113 | } else if let value = self as? Int {
114 | return Double(value)
115 | } else if let value = self as? Int64 {
| `- warning: cast from 'Double' to unrelated type 'Int64' always fails
116 | return Double(value)
117 | } else if let value = self as? Int32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:117:36: warning: cast from 'Double' to unrelated type 'Int32' always fails
115 | } else if let value = self as? Int64 {
116 | return Double(value)
117 | } else if let value = self as? Int32 {
| `- warning: cast from 'Double' to unrelated type 'Int32' always fails
118 | return Double(value)
119 | } else if let value = self as? Int16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:119:36: warning: cast from 'Double' to unrelated type 'Int16' always fails
117 | } else if let value = self as? Int32 {
118 | return Double(value)
119 | } else if let value = self as? Int16 {
| `- warning: cast from 'Double' to unrelated type 'Int16' always fails
120 | return Double(value)
121 | } else if let value = self as? Int8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:121:36: warning: cast from 'Double' to unrelated type 'Int8' always fails
119 | } else if let value = self as? Int16 {
120 | return Double(value)
121 | } else if let value = self as? Int8 {
| `- warning: cast from 'Double' to unrelated type 'Int8' always fails
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:123:36: warning: cast from 'Double' to unrelated type 'UInt64' always fails
121 | } else if let value = self as? Int8 {
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
| `- warning: cast from 'Double' to unrelated type 'UInt64' always fails
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:125:36: warning: cast from 'Double' to unrelated type 'UInt32' always fails
123 | } else if let value = self as? UInt64 {
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
| `- warning: cast from 'Double' to unrelated type 'UInt32' always fails
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:127:36: warning: cast from 'Double' to unrelated type 'UInt16' always fails
125 | } else if let value = self as? UInt32 {
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
| `- warning: cast from 'Double' to unrelated type 'UInt16' always fails
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:129:36: warning: cast from 'Double' to unrelated type 'UInt8' always fails
127 | } else if let value = self as? UInt16 {
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
| `- warning: cast from 'Double' to unrelated type 'UInt8' always fails
130 | return Double(value)
131 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_PropertyConstantsDelegator.swift:24:66: warning: expression implicitly coerced from 'Any?' to 'Any'
22 | for optionId in algorithmData.getKnownOptionIds() {
23 | let defaultValue = algorithmData.getDefaultValue(optionId)
24 | let delegate = Property<Any>(optionId, defaultValue: defaultValue)
| |- warning: expression implicitly coerced from 'Any?' to 'Any'
| |- note: provide a default value to avoid this warning
| |- note: force-unwrap the value to avoid this warning
| `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
25 | delegator.addDelegate(delegate)
26 | }
[407/413] Compiling ElkSwift org_eclipse_elk_core_util_InstancePool.swift
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_AbstractRandomListAccessor.swift:96:13: warning: immutable value 'i' was never used; consider replacing with '_' or removing it
94 | */
95 | package func ensureListSize(size: Int) {
96 | for i in list.count..<size {
| `- warning: immutable value 'i' was never used; consider replacing with '_' or removing it
97 | list.append(provideDefault())
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:226:13: warning: variable 'newSize' was never mutated; consider changing to 'let' constant
224 | let oldSize = KVector(node.width, node.height)
225 |
226 | var newSize = effectiveMinSizeConstraintFor(node)
| `- warning: variable 'newSize' was never mutated; consider changing to 'let' constant
227 | newSize.x = max(newSize.x, newWidth)
228 | newSize.y = max(newSize.y, newHeight)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:322:17: warning: variable 'minSize' was never mutated; consider changing to 'let' constant
320 | let sizeOptions: SizeOptions = node.getProperty(CoreOptions.NODE_SIZE_OPTIONS) ?? []
321 | let minSizeVec: KVector = node.getProperty(CoreOptions.NODE_SIZE_MINIMUM) ?? KVector()
322 | var minSize = KVector(minSizeVec.x, minSizeVec.y)
| `- warning: variable 'minSize' was never mutated; consider changing to 'let' constant
323 |
324 | // If minimum width or height are not set, maybe default to default values
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:469:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
467 | }
468 |
469 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
470 |
471 | if let sourcePort = ElkGraphUtil.connectableShapeToPort(edge.sources[0]) {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:501:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
499 |
500 | // Collection for the junction points of the current edge
501 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
502 |
503 | // Store the points of the edge in a map for efficiency
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:610:13: warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
608 | */
609 | package static func getPoints(_ section: ElkEdgeSection) -> [KVector] {
610 | let n = section.bendPoints.count + 2
| `- warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
611 | var points: [KVector] = []
612 |
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:687:28: warning: result of call to 'offset' is unused
685 | // Junction points
686 | if let junctionPoints: KVectorChain = edge.getProperty(CoreOptions.JUNCTION_POINTS) {
687 | junctionPoints.offset(xoffset, yoffset)
| `- warning: result of call to 'offset' is unused
688 | }
689 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:775:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
773 | package static func toAbsolute(_ point: KVector, parent: ElkNode?) -> KVector {
774 | var node = parent
775 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
776 | while let currentNode = node {
777 | resultPoint.add(currentNode.x, currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:792:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
790 | package static func toRelative(_ point: KVector, parent: ElkNode?) -> KVector {
791 | var node = parent
792 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
793 | while let currentNode = node {
794 | resultPoint.add(-currentNode.x, -currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:888:30: warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
886 | var kgeIt = ElkGraphUtil.allContents(graph).makeIterator()
887 | while let kge = kgeIt.next() {
888 | if let kge = kge as? ElkGraphElement {
| `- warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
889 | if let node = kge as? ElkNode {
890 | configureWithDefaultValues(node)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:980:13: warning: variable 'allElements' was never mutated; consider changing to 'let' constant
978 | */
979 | package static func applyVisitors(_ graph: ElkNode, visitors: [IGraphElementVisitor]) throws {
980 | var allElements = ElkGraphUtil.propertiesSkippingIteratorFor(graph, true).makeIterator()
| `- warning: variable 'allElements' was never mutated; consider changing to 'let' constant
981 | while let nextElement = allElements.next() {
982 | if let graphElement = nextElement as? ElkGraphElement {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:109:29: warning: conditional cast from 'Double' to 'Double' always succeeds
107 | extension Number {
108 | package var doubleValue: Double {
109 | if let value = self as? Double {
| `- warning: conditional cast from 'Double' to 'Double' always succeeds
110 | return value
111 | } else if let value = self as? Float {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:111:36: warning: cast from 'Double' to unrelated type 'Float' always fails
109 | if let value = self as? Double {
110 | return value
111 | } else if let value = self as? Float {
| `- warning: cast from 'Double' to unrelated type 'Float' always fails
112 | return Double(value)
113 | } else if let value = self as? Int {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:113:36: warning: cast from 'Double' to unrelated type 'Int' always fails
111 | } else if let value = self as? Float {
112 | return Double(value)
113 | } else if let value = self as? Int {
| `- warning: cast from 'Double' to unrelated type 'Int' always fails
114 | return Double(value)
115 | } else if let value = self as? Int64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:115:36: warning: cast from 'Double' to unrelated type 'Int64' always fails
113 | } else if let value = self as? Int {
114 | return Double(value)
115 | } else if let value = self as? Int64 {
| `- warning: cast from 'Double' to unrelated type 'Int64' always fails
116 | return Double(value)
117 | } else if let value = self as? Int32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:117:36: warning: cast from 'Double' to unrelated type 'Int32' always fails
115 | } else if let value = self as? Int64 {
116 | return Double(value)
117 | } else if let value = self as? Int32 {
| `- warning: cast from 'Double' to unrelated type 'Int32' always fails
118 | return Double(value)
119 | } else if let value = self as? Int16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:119:36: warning: cast from 'Double' to unrelated type 'Int16' always fails
117 | } else if let value = self as? Int32 {
118 | return Double(value)
119 | } else if let value = self as? Int16 {
| `- warning: cast from 'Double' to unrelated type 'Int16' always fails
120 | return Double(value)
121 | } else if let value = self as? Int8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:121:36: warning: cast from 'Double' to unrelated type 'Int8' always fails
119 | } else if let value = self as? Int16 {
120 | return Double(value)
121 | } else if let value = self as? Int8 {
| `- warning: cast from 'Double' to unrelated type 'Int8' always fails
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:123:36: warning: cast from 'Double' to unrelated type 'UInt64' always fails
121 | } else if let value = self as? Int8 {
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
| `- warning: cast from 'Double' to unrelated type 'UInt64' always fails
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:125:36: warning: cast from 'Double' to unrelated type 'UInt32' always fails
123 | } else if let value = self as? UInt64 {
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
| `- warning: cast from 'Double' to unrelated type 'UInt32' always fails
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:127:36: warning: cast from 'Double' to unrelated type 'UInt16' always fails
125 | } else if let value = self as? UInt32 {
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
| `- warning: cast from 'Double' to unrelated type 'UInt16' always fails
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:129:36: warning: cast from 'Double' to unrelated type 'UInt8' always fails
127 | } else if let value = self as? UInt16 {
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
| `- warning: cast from 'Double' to unrelated type 'UInt8' always fails
130 | return Double(value)
131 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_PropertyConstantsDelegator.swift:24:66: warning: expression implicitly coerced from 'Any?' to 'Any'
22 | for optionId in algorithmData.getKnownOptionIds() {
23 | let defaultValue = algorithmData.getDefaultValue(optionId)
24 | let delegate = Property<Any>(optionId, defaultValue: defaultValue)
| |- warning: expression implicitly coerced from 'Any?' to 'Any'
| |- note: provide a default value to avoid this warning
| |- note: force-unwrap the value to avoid this warning
| `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
25 | delegator.addDelegate(delegate)
26 | }
[408/413] Compiling ElkSwift org_eclipse_elk_core_util_Maybe.swift
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_AbstractRandomListAccessor.swift:96:13: warning: immutable value 'i' was never used; consider replacing with '_' or removing it
94 | */
95 | package func ensureListSize(size: Int) {
96 | for i in list.count..<size {
| `- warning: immutable value 'i' was never used; consider replacing with '_' or removing it
97 | list.append(provideDefault())
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:226:13: warning: variable 'newSize' was never mutated; consider changing to 'let' constant
224 | let oldSize = KVector(node.width, node.height)
225 |
226 | var newSize = effectiveMinSizeConstraintFor(node)
| `- warning: variable 'newSize' was never mutated; consider changing to 'let' constant
227 | newSize.x = max(newSize.x, newWidth)
228 | newSize.y = max(newSize.y, newHeight)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:322:17: warning: variable 'minSize' was never mutated; consider changing to 'let' constant
320 | let sizeOptions: SizeOptions = node.getProperty(CoreOptions.NODE_SIZE_OPTIONS) ?? []
321 | let minSizeVec: KVector = node.getProperty(CoreOptions.NODE_SIZE_MINIMUM) ?? KVector()
322 | var minSize = KVector(minSizeVec.x, minSizeVec.y)
| `- warning: variable 'minSize' was never mutated; consider changing to 'let' constant
323 |
324 | // If minimum width or height are not set, maybe default to default values
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:469:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
467 | }
468 |
469 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
470 |
471 | if let sourcePort = ElkGraphUtil.connectableShapeToPort(edge.sources[0]) {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:501:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
499 |
500 | // Collection for the junction points of the current edge
501 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
502 |
503 | // Store the points of the edge in a map for efficiency
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:610:13: warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
608 | */
609 | package static func getPoints(_ section: ElkEdgeSection) -> [KVector] {
610 | let n = section.bendPoints.count + 2
| `- warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
611 | var points: [KVector] = []
612 |
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:687:28: warning: result of call to 'offset' is unused
685 | // Junction points
686 | if let junctionPoints: KVectorChain = edge.getProperty(CoreOptions.JUNCTION_POINTS) {
687 | junctionPoints.offset(xoffset, yoffset)
| `- warning: result of call to 'offset' is unused
688 | }
689 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:775:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
773 | package static func toAbsolute(_ point: KVector, parent: ElkNode?) -> KVector {
774 | var node = parent
775 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
776 | while let currentNode = node {
777 | resultPoint.add(currentNode.x, currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:792:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
790 | package static func toRelative(_ point: KVector, parent: ElkNode?) -> KVector {
791 | var node = parent
792 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
793 | while let currentNode = node {
794 | resultPoint.add(-currentNode.x, -currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:888:30: warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
886 | var kgeIt = ElkGraphUtil.allContents(graph).makeIterator()
887 | while let kge = kgeIt.next() {
888 | if let kge = kge as? ElkGraphElement {
| `- warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
889 | if let node = kge as? ElkNode {
890 | configureWithDefaultValues(node)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:980:13: warning: variable 'allElements' was never mutated; consider changing to 'let' constant
978 | */
979 | package static func applyVisitors(_ graph: ElkNode, visitors: [IGraphElementVisitor]) throws {
980 | var allElements = ElkGraphUtil.propertiesSkippingIteratorFor(graph, true).makeIterator()
| `- warning: variable 'allElements' was never mutated; consider changing to 'let' constant
981 | while let nextElement = allElements.next() {
982 | if let graphElement = nextElement as? ElkGraphElement {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:109:29: warning: conditional cast from 'Double' to 'Double' always succeeds
107 | extension Number {
108 | package var doubleValue: Double {
109 | if let value = self as? Double {
| `- warning: conditional cast from 'Double' to 'Double' always succeeds
110 | return value
111 | } else if let value = self as? Float {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:111:36: warning: cast from 'Double' to unrelated type 'Float' always fails
109 | if let value = self as? Double {
110 | return value
111 | } else if let value = self as? Float {
| `- warning: cast from 'Double' to unrelated type 'Float' always fails
112 | return Double(value)
113 | } else if let value = self as? Int {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:113:36: warning: cast from 'Double' to unrelated type 'Int' always fails
111 | } else if let value = self as? Float {
112 | return Double(value)
113 | } else if let value = self as? Int {
| `- warning: cast from 'Double' to unrelated type 'Int' always fails
114 | return Double(value)
115 | } else if let value = self as? Int64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:115:36: warning: cast from 'Double' to unrelated type 'Int64' always fails
113 | } else if let value = self as? Int {
114 | return Double(value)
115 | } else if let value = self as? Int64 {
| `- warning: cast from 'Double' to unrelated type 'Int64' always fails
116 | return Double(value)
117 | } else if let value = self as? Int32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:117:36: warning: cast from 'Double' to unrelated type 'Int32' always fails
115 | } else if let value = self as? Int64 {
116 | return Double(value)
117 | } else if let value = self as? Int32 {
| `- warning: cast from 'Double' to unrelated type 'Int32' always fails
118 | return Double(value)
119 | } else if let value = self as? Int16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:119:36: warning: cast from 'Double' to unrelated type 'Int16' always fails
117 | } else if let value = self as? Int32 {
118 | return Double(value)
119 | } else if let value = self as? Int16 {
| `- warning: cast from 'Double' to unrelated type 'Int16' always fails
120 | return Double(value)
121 | } else if let value = self as? Int8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:121:36: warning: cast from 'Double' to unrelated type 'Int8' always fails
119 | } else if let value = self as? Int16 {
120 | return Double(value)
121 | } else if let value = self as? Int8 {
| `- warning: cast from 'Double' to unrelated type 'Int8' always fails
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:123:36: warning: cast from 'Double' to unrelated type 'UInt64' always fails
121 | } else if let value = self as? Int8 {
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
| `- warning: cast from 'Double' to unrelated type 'UInt64' always fails
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:125:36: warning: cast from 'Double' to unrelated type 'UInt32' always fails
123 | } else if let value = self as? UInt64 {
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
| `- warning: cast from 'Double' to unrelated type 'UInt32' always fails
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:127:36: warning: cast from 'Double' to unrelated type 'UInt16' always fails
125 | } else if let value = self as? UInt32 {
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
| `- warning: cast from 'Double' to unrelated type 'UInt16' always fails
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:129:36: warning: cast from 'Double' to unrelated type 'UInt8' always fails
127 | } else if let value = self as? UInt16 {
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
| `- warning: cast from 'Double' to unrelated type 'UInt8' always fails
130 | return Double(value)
131 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_PropertyConstantsDelegator.swift:24:66: warning: expression implicitly coerced from 'Any?' to 'Any'
22 | for optionId in algorithmData.getKnownOptionIds() {
23 | let defaultValue = algorithmData.getDefaultValue(optionId)
24 | let delegate = Property<Any>(optionId, defaultValue: defaultValue)
| |- warning: expression implicitly coerced from 'Any?' to 'Any'
| |- note: provide a default value to avoid this warning
| |- note: force-unwrap the value to avoid this warning
| `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
25 | delegator.addDelegate(delegate)
26 | }
[409/413] Compiling ElkSwift org_eclipse_elk_core_util_NullElkProgressMonitor.swift
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_AbstractRandomListAccessor.swift:96:13: warning: immutable value 'i' was never used; consider replacing with '_' or removing it
94 | */
95 | package func ensureListSize(size: Int) {
96 | for i in list.count..<size {
| `- warning: immutable value 'i' was never used; consider replacing with '_' or removing it
97 | list.append(provideDefault())
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:226:13: warning: variable 'newSize' was never mutated; consider changing to 'let' constant
224 | let oldSize = KVector(node.width, node.height)
225 |
226 | var newSize = effectiveMinSizeConstraintFor(node)
| `- warning: variable 'newSize' was never mutated; consider changing to 'let' constant
227 | newSize.x = max(newSize.x, newWidth)
228 | newSize.y = max(newSize.y, newHeight)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:322:17: warning: variable 'minSize' was never mutated; consider changing to 'let' constant
320 | let sizeOptions: SizeOptions = node.getProperty(CoreOptions.NODE_SIZE_OPTIONS) ?? []
321 | let minSizeVec: KVector = node.getProperty(CoreOptions.NODE_SIZE_MINIMUM) ?? KVector()
322 | var minSize = KVector(minSizeVec.x, minSizeVec.y)
| `- warning: variable 'minSize' was never mutated; consider changing to 'let' constant
323 |
324 | // If minimum width or height are not set, maybe default to default values
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:469:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
467 | }
468 |
469 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
470 |
471 | if let sourcePort = ElkGraphUtil.connectableShapeToPort(edge.sources[0]) {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:501:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
499 |
500 | // Collection for the junction points of the current edge
501 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
502 |
503 | // Store the points of the edge in a map for efficiency
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:610:13: warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
608 | */
609 | package static func getPoints(_ section: ElkEdgeSection) -> [KVector] {
610 | let n = section.bendPoints.count + 2
| `- warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
611 | var points: [KVector] = []
612 |
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:687:28: warning: result of call to 'offset' is unused
685 | // Junction points
686 | if let junctionPoints: KVectorChain = edge.getProperty(CoreOptions.JUNCTION_POINTS) {
687 | junctionPoints.offset(xoffset, yoffset)
| `- warning: result of call to 'offset' is unused
688 | }
689 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:775:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
773 | package static func toAbsolute(_ point: KVector, parent: ElkNode?) -> KVector {
774 | var node = parent
775 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
776 | while let currentNode = node {
777 | resultPoint.add(currentNode.x, currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:792:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
790 | package static func toRelative(_ point: KVector, parent: ElkNode?) -> KVector {
791 | var node = parent
792 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
793 | while let currentNode = node {
794 | resultPoint.add(-currentNode.x, -currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:888:30: warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
886 | var kgeIt = ElkGraphUtil.allContents(graph).makeIterator()
887 | while let kge = kgeIt.next() {
888 | if let kge = kge as? ElkGraphElement {
| `- warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
889 | if let node = kge as? ElkNode {
890 | configureWithDefaultValues(node)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:980:13: warning: variable 'allElements' was never mutated; consider changing to 'let' constant
978 | */
979 | package static func applyVisitors(_ graph: ElkNode, visitors: [IGraphElementVisitor]) throws {
980 | var allElements = ElkGraphUtil.propertiesSkippingIteratorFor(graph, true).makeIterator()
| `- warning: variable 'allElements' was never mutated; consider changing to 'let' constant
981 | while let nextElement = allElements.next() {
982 | if let graphElement = nextElement as? ElkGraphElement {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:109:29: warning: conditional cast from 'Double' to 'Double' always succeeds
107 | extension Number {
108 | package var doubleValue: Double {
109 | if let value = self as? Double {
| `- warning: conditional cast from 'Double' to 'Double' always succeeds
110 | return value
111 | } else if let value = self as? Float {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:111:36: warning: cast from 'Double' to unrelated type 'Float' always fails
109 | if let value = self as? Double {
110 | return value
111 | } else if let value = self as? Float {
| `- warning: cast from 'Double' to unrelated type 'Float' always fails
112 | return Double(value)
113 | } else if let value = self as? Int {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:113:36: warning: cast from 'Double' to unrelated type 'Int' always fails
111 | } else if let value = self as? Float {
112 | return Double(value)
113 | } else if let value = self as? Int {
| `- warning: cast from 'Double' to unrelated type 'Int' always fails
114 | return Double(value)
115 | } else if let value = self as? Int64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:115:36: warning: cast from 'Double' to unrelated type 'Int64' always fails
113 | } else if let value = self as? Int {
114 | return Double(value)
115 | } else if let value = self as? Int64 {
| `- warning: cast from 'Double' to unrelated type 'Int64' always fails
116 | return Double(value)
117 | } else if let value = self as? Int32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:117:36: warning: cast from 'Double' to unrelated type 'Int32' always fails
115 | } else if let value = self as? Int64 {
116 | return Double(value)
117 | } else if let value = self as? Int32 {
| `- warning: cast from 'Double' to unrelated type 'Int32' always fails
118 | return Double(value)
119 | } else if let value = self as? Int16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:119:36: warning: cast from 'Double' to unrelated type 'Int16' always fails
117 | } else if let value = self as? Int32 {
118 | return Double(value)
119 | } else if let value = self as? Int16 {
| `- warning: cast from 'Double' to unrelated type 'Int16' always fails
120 | return Double(value)
121 | } else if let value = self as? Int8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:121:36: warning: cast from 'Double' to unrelated type 'Int8' always fails
119 | } else if let value = self as? Int16 {
120 | return Double(value)
121 | } else if let value = self as? Int8 {
| `- warning: cast from 'Double' to unrelated type 'Int8' always fails
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:123:36: warning: cast from 'Double' to unrelated type 'UInt64' always fails
121 | } else if let value = self as? Int8 {
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
| `- warning: cast from 'Double' to unrelated type 'UInt64' always fails
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:125:36: warning: cast from 'Double' to unrelated type 'UInt32' always fails
123 | } else if let value = self as? UInt64 {
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
| `- warning: cast from 'Double' to unrelated type 'UInt32' always fails
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:127:36: warning: cast from 'Double' to unrelated type 'UInt16' always fails
125 | } else if let value = self as? UInt32 {
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
| `- warning: cast from 'Double' to unrelated type 'UInt16' always fails
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:129:36: warning: cast from 'Double' to unrelated type 'UInt8' always fails
127 | } else if let value = self as? UInt16 {
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
| `- warning: cast from 'Double' to unrelated type 'UInt8' always fails
130 | return Double(value)
131 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_PropertyConstantsDelegator.swift:24:66: warning: expression implicitly coerced from 'Any?' to 'Any'
22 | for optionId in algorithmData.getKnownOptionIds() {
23 | let defaultValue = algorithmData.getDefaultValue(optionId)
24 | let delegate = Property<Any>(optionId, defaultValue: defaultValue)
| |- warning: expression implicitly coerced from 'Any?' to 'Any'
| |- note: provide a default value to avoid this warning
| |- note: force-unwrap the value to avoid this warning
| `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
25 | delegator.addDelegate(delegate)
26 | }
[410/413] Compiling ElkSwift org_eclipse_elk_core_util_Pair.swift
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_AbstractRandomListAccessor.swift:96:13: warning: immutable value 'i' was never used; consider replacing with '_' or removing it
94 | */
95 | package func ensureListSize(size: Int) {
96 | for i in list.count..<size {
| `- warning: immutable value 'i' was never used; consider replacing with '_' or removing it
97 | list.append(provideDefault())
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:226:13: warning: variable 'newSize' was never mutated; consider changing to 'let' constant
224 | let oldSize = KVector(node.width, node.height)
225 |
226 | var newSize = effectiveMinSizeConstraintFor(node)
| `- warning: variable 'newSize' was never mutated; consider changing to 'let' constant
227 | newSize.x = max(newSize.x, newWidth)
228 | newSize.y = max(newSize.y, newHeight)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:322:17: warning: variable 'minSize' was never mutated; consider changing to 'let' constant
320 | let sizeOptions: SizeOptions = node.getProperty(CoreOptions.NODE_SIZE_OPTIONS) ?? []
321 | let minSizeVec: KVector = node.getProperty(CoreOptions.NODE_SIZE_MINIMUM) ?? KVector()
322 | var minSize = KVector(minSizeVec.x, minSizeVec.y)
| `- warning: variable 'minSize' was never mutated; consider changing to 'let' constant
323 |
324 | // If minimum width or height are not set, maybe default to default values
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:469:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
467 | }
468 |
469 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
470 |
471 | if let sourcePort = ElkGraphUtil.connectableShapeToPort(edge.sources[0]) {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:501:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
499 |
500 | // Collection for the junction points of the current edge
501 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
502 |
503 | // Store the points of the edge in a map for efficiency
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:610:13: warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
608 | */
609 | package static func getPoints(_ section: ElkEdgeSection) -> [KVector] {
610 | let n = section.bendPoints.count + 2
| `- warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
611 | var points: [KVector] = []
612 |
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:687:28: warning: result of call to 'offset' is unused
685 | // Junction points
686 | if let junctionPoints: KVectorChain = edge.getProperty(CoreOptions.JUNCTION_POINTS) {
687 | junctionPoints.offset(xoffset, yoffset)
| `- warning: result of call to 'offset' is unused
688 | }
689 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:775:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
773 | package static func toAbsolute(_ point: KVector, parent: ElkNode?) -> KVector {
774 | var node = parent
775 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
776 | while let currentNode = node {
777 | resultPoint.add(currentNode.x, currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:792:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
790 | package static func toRelative(_ point: KVector, parent: ElkNode?) -> KVector {
791 | var node = parent
792 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
793 | while let currentNode = node {
794 | resultPoint.add(-currentNode.x, -currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:888:30: warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
886 | var kgeIt = ElkGraphUtil.allContents(graph).makeIterator()
887 | while let kge = kgeIt.next() {
888 | if let kge = kge as? ElkGraphElement {
| `- warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
889 | if let node = kge as? ElkNode {
890 | configureWithDefaultValues(node)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:980:13: warning: variable 'allElements' was never mutated; consider changing to 'let' constant
978 | */
979 | package static func applyVisitors(_ graph: ElkNode, visitors: [IGraphElementVisitor]) throws {
980 | var allElements = ElkGraphUtil.propertiesSkippingIteratorFor(graph, true).makeIterator()
| `- warning: variable 'allElements' was never mutated; consider changing to 'let' constant
981 | while let nextElement = allElements.next() {
982 | if let graphElement = nextElement as? ElkGraphElement {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:109:29: warning: conditional cast from 'Double' to 'Double' always succeeds
107 | extension Number {
108 | package var doubleValue: Double {
109 | if let value = self as? Double {
| `- warning: conditional cast from 'Double' to 'Double' always succeeds
110 | return value
111 | } else if let value = self as? Float {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:111:36: warning: cast from 'Double' to unrelated type 'Float' always fails
109 | if let value = self as? Double {
110 | return value
111 | } else if let value = self as? Float {
| `- warning: cast from 'Double' to unrelated type 'Float' always fails
112 | return Double(value)
113 | } else if let value = self as? Int {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:113:36: warning: cast from 'Double' to unrelated type 'Int' always fails
111 | } else if let value = self as? Float {
112 | return Double(value)
113 | } else if let value = self as? Int {
| `- warning: cast from 'Double' to unrelated type 'Int' always fails
114 | return Double(value)
115 | } else if let value = self as? Int64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:115:36: warning: cast from 'Double' to unrelated type 'Int64' always fails
113 | } else if let value = self as? Int {
114 | return Double(value)
115 | } else if let value = self as? Int64 {
| `- warning: cast from 'Double' to unrelated type 'Int64' always fails
116 | return Double(value)
117 | } else if let value = self as? Int32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:117:36: warning: cast from 'Double' to unrelated type 'Int32' always fails
115 | } else if let value = self as? Int64 {
116 | return Double(value)
117 | } else if let value = self as? Int32 {
| `- warning: cast from 'Double' to unrelated type 'Int32' always fails
118 | return Double(value)
119 | } else if let value = self as? Int16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:119:36: warning: cast from 'Double' to unrelated type 'Int16' always fails
117 | } else if let value = self as? Int32 {
118 | return Double(value)
119 | } else if let value = self as? Int16 {
| `- warning: cast from 'Double' to unrelated type 'Int16' always fails
120 | return Double(value)
121 | } else if let value = self as? Int8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:121:36: warning: cast from 'Double' to unrelated type 'Int8' always fails
119 | } else if let value = self as? Int16 {
120 | return Double(value)
121 | } else if let value = self as? Int8 {
| `- warning: cast from 'Double' to unrelated type 'Int8' always fails
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:123:36: warning: cast from 'Double' to unrelated type 'UInt64' always fails
121 | } else if let value = self as? Int8 {
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
| `- warning: cast from 'Double' to unrelated type 'UInt64' always fails
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:125:36: warning: cast from 'Double' to unrelated type 'UInt32' always fails
123 | } else if let value = self as? UInt64 {
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
| `- warning: cast from 'Double' to unrelated type 'UInt32' always fails
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:127:36: warning: cast from 'Double' to unrelated type 'UInt16' always fails
125 | } else if let value = self as? UInt32 {
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
| `- warning: cast from 'Double' to unrelated type 'UInt16' always fails
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:129:36: warning: cast from 'Double' to unrelated type 'UInt8' always fails
127 | } else if let value = self as? UInt16 {
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
| `- warning: cast from 'Double' to unrelated type 'UInt8' always fails
130 | return Double(value)
131 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_PropertyConstantsDelegator.swift:24:66: warning: expression implicitly coerced from 'Any?' to 'Any'
22 | for optionId in algorithmData.getKnownOptionIds() {
23 | let defaultValue = algorithmData.getDefaultValue(optionId)
24 | let delegate = Property<Any>(optionId, defaultValue: defaultValue)
| |- warning: expression implicitly coerced from 'Any?' to 'Any'
| |- note: provide a default value to avoid this warning
| |- note: force-unwrap the value to avoid this warning
| `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
25 | delegator.addDelegate(delegate)
26 | }
[411/413] Compiling ElkSwift org_eclipse_elk_core_util_PropertyConstantsDelegator.swift
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_AbstractRandomListAccessor.swift:96:13: warning: immutable value 'i' was never used; consider replacing with '_' or removing it
94 | */
95 | package func ensureListSize(size: Int) {
96 | for i in list.count..<size {
| `- warning: immutable value 'i' was never used; consider replacing with '_' or removing it
97 | list.append(provideDefault())
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:226:13: warning: variable 'newSize' was never mutated; consider changing to 'let' constant
224 | let oldSize = KVector(node.width, node.height)
225 |
226 | var newSize = effectiveMinSizeConstraintFor(node)
| `- warning: variable 'newSize' was never mutated; consider changing to 'let' constant
227 | newSize.x = max(newSize.x, newWidth)
228 | newSize.y = max(newSize.y, newHeight)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:322:17: warning: variable 'minSize' was never mutated; consider changing to 'let' constant
320 | let sizeOptions: SizeOptions = node.getProperty(CoreOptions.NODE_SIZE_OPTIONS) ?? []
321 | let minSizeVec: KVector = node.getProperty(CoreOptions.NODE_SIZE_MINIMUM) ?? KVector()
322 | var minSize = KVector(minSizeVec.x, minSizeVec.y)
| `- warning: variable 'minSize' was never mutated; consider changing to 'let' constant
323 |
324 | // If minimum width or height are not set, maybe default to default values
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:469:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
467 | }
468 |
469 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
470 |
471 | if let sourcePort = ElkGraphUtil.connectableShapeToPort(edge.sources[0]) {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:501:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
499 |
500 | // Collection for the junction points of the current edge
501 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
502 |
503 | // Store the points of the edge in a map for efficiency
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:610:13: warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
608 | */
609 | package static func getPoints(_ section: ElkEdgeSection) -> [KVector] {
610 | let n = section.bendPoints.count + 2
| `- warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
611 | var points: [KVector] = []
612 |
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:687:28: warning: result of call to 'offset' is unused
685 | // Junction points
686 | if let junctionPoints: KVectorChain = edge.getProperty(CoreOptions.JUNCTION_POINTS) {
687 | junctionPoints.offset(xoffset, yoffset)
| `- warning: result of call to 'offset' is unused
688 | }
689 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:775:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
773 | package static func toAbsolute(_ point: KVector, parent: ElkNode?) -> KVector {
774 | var node = parent
775 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
776 | while let currentNode = node {
777 | resultPoint.add(currentNode.x, currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:792:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
790 | package static func toRelative(_ point: KVector, parent: ElkNode?) -> KVector {
791 | var node = parent
792 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
793 | while let currentNode = node {
794 | resultPoint.add(-currentNode.x, -currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:888:30: warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
886 | var kgeIt = ElkGraphUtil.allContents(graph).makeIterator()
887 | while let kge = kgeIt.next() {
888 | if let kge = kge as? ElkGraphElement {
| `- warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
889 | if let node = kge as? ElkNode {
890 | configureWithDefaultValues(node)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:980:13: warning: variable 'allElements' was never mutated; consider changing to 'let' constant
978 | */
979 | package static func applyVisitors(_ graph: ElkNode, visitors: [IGraphElementVisitor]) throws {
980 | var allElements = ElkGraphUtil.propertiesSkippingIteratorFor(graph, true).makeIterator()
| `- warning: variable 'allElements' was never mutated; consider changing to 'let' constant
981 | while let nextElement = allElements.next() {
982 | if let graphElement = nextElement as? ElkGraphElement {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:109:29: warning: conditional cast from 'Double' to 'Double' always succeeds
107 | extension Number {
108 | package var doubleValue: Double {
109 | if let value = self as? Double {
| `- warning: conditional cast from 'Double' to 'Double' always succeeds
110 | return value
111 | } else if let value = self as? Float {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:111:36: warning: cast from 'Double' to unrelated type 'Float' always fails
109 | if let value = self as? Double {
110 | return value
111 | } else if let value = self as? Float {
| `- warning: cast from 'Double' to unrelated type 'Float' always fails
112 | return Double(value)
113 | } else if let value = self as? Int {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:113:36: warning: cast from 'Double' to unrelated type 'Int' always fails
111 | } else if let value = self as? Float {
112 | return Double(value)
113 | } else if let value = self as? Int {
| `- warning: cast from 'Double' to unrelated type 'Int' always fails
114 | return Double(value)
115 | } else if let value = self as? Int64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:115:36: warning: cast from 'Double' to unrelated type 'Int64' always fails
113 | } else if let value = self as? Int {
114 | return Double(value)
115 | } else if let value = self as? Int64 {
| `- warning: cast from 'Double' to unrelated type 'Int64' always fails
116 | return Double(value)
117 | } else if let value = self as? Int32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:117:36: warning: cast from 'Double' to unrelated type 'Int32' always fails
115 | } else if let value = self as? Int64 {
116 | return Double(value)
117 | } else if let value = self as? Int32 {
| `- warning: cast from 'Double' to unrelated type 'Int32' always fails
118 | return Double(value)
119 | } else if let value = self as? Int16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:119:36: warning: cast from 'Double' to unrelated type 'Int16' always fails
117 | } else if let value = self as? Int32 {
118 | return Double(value)
119 | } else if let value = self as? Int16 {
| `- warning: cast from 'Double' to unrelated type 'Int16' always fails
120 | return Double(value)
121 | } else if let value = self as? Int8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:121:36: warning: cast from 'Double' to unrelated type 'Int8' always fails
119 | } else if let value = self as? Int16 {
120 | return Double(value)
121 | } else if let value = self as? Int8 {
| `- warning: cast from 'Double' to unrelated type 'Int8' always fails
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:123:36: warning: cast from 'Double' to unrelated type 'UInt64' always fails
121 | } else if let value = self as? Int8 {
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
| `- warning: cast from 'Double' to unrelated type 'UInt64' always fails
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:125:36: warning: cast from 'Double' to unrelated type 'UInt32' always fails
123 | } else if let value = self as? UInt64 {
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
| `- warning: cast from 'Double' to unrelated type 'UInt32' always fails
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:127:36: warning: cast from 'Double' to unrelated type 'UInt16' always fails
125 | } else if let value = self as? UInt32 {
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
| `- warning: cast from 'Double' to unrelated type 'UInt16' always fails
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:129:36: warning: cast from 'Double' to unrelated type 'UInt8' always fails
127 | } else if let value = self as? UInt16 {
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
| `- warning: cast from 'Double' to unrelated type 'UInt8' always fails
130 | return Double(value)
131 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_PropertyConstantsDelegator.swift:24:66: warning: expression implicitly coerced from 'Any?' to 'Any'
22 | for optionId in algorithmData.getKnownOptionIds() {
23 | let defaultValue = algorithmData.getDefaultValue(optionId)
24 | let delegate = Property<Any>(optionId, defaultValue: defaultValue)
| |- warning: expression implicitly coerced from 'Any?' to 'Any'
| |- note: provide a default value to avoid this warning
| |- note: force-unwrap the value to avoid this warning
| `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
25 | delegator.addDelegate(delegate)
26 | }
[412/413] Compiling ElkSwift org_eclipse_elk_core_util_Quadruple.swift
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_AbstractRandomListAccessor.swift:96:13: warning: immutable value 'i' was never used; consider replacing with '_' or removing it
94 | */
95 | package func ensureListSize(size: Int) {
96 | for i in list.count..<size {
| `- warning: immutable value 'i' was never used; consider replacing with '_' or removing it
97 | list.append(provideDefault())
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:226:13: warning: variable 'newSize' was never mutated; consider changing to 'let' constant
224 | let oldSize = KVector(node.width, node.height)
225 |
226 | var newSize = effectiveMinSizeConstraintFor(node)
| `- warning: variable 'newSize' was never mutated; consider changing to 'let' constant
227 | newSize.x = max(newSize.x, newWidth)
228 | newSize.y = max(newSize.y, newHeight)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:322:17: warning: variable 'minSize' was never mutated; consider changing to 'let' constant
320 | let sizeOptions: SizeOptions = node.getProperty(CoreOptions.NODE_SIZE_OPTIONS) ?? []
321 | let minSizeVec: KVector = node.getProperty(CoreOptions.NODE_SIZE_MINIMUM) ?? KVector()
322 | var minSize = KVector(minSizeVec.x, minSizeVec.y)
| `- warning: variable 'minSize' was never mutated; consider changing to 'let' constant
323 |
324 | // If minimum width or height are not set, maybe default to default values
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:469:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
467 | }
468 |
469 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
470 |
471 | if let sourcePort = ElkGraphUtil.connectableShapeToPort(edge.sources[0]) {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:501:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
499 |
500 | // Collection for the junction points of the current edge
501 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
502 |
503 | // Store the points of the edge in a map for efficiency
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:610:13: warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
608 | */
609 | package static func getPoints(_ section: ElkEdgeSection) -> [KVector] {
610 | let n = section.bendPoints.count + 2
| `- warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
611 | var points: [KVector] = []
612 |
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:687:28: warning: result of call to 'offset' is unused
685 | // Junction points
686 | if let junctionPoints: KVectorChain = edge.getProperty(CoreOptions.JUNCTION_POINTS) {
687 | junctionPoints.offset(xoffset, yoffset)
| `- warning: result of call to 'offset' is unused
688 | }
689 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:775:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
773 | package static func toAbsolute(_ point: KVector, parent: ElkNode?) -> KVector {
774 | var node = parent
775 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
776 | while let currentNode = node {
777 | resultPoint.add(currentNode.x, currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:792:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
790 | package static func toRelative(_ point: KVector, parent: ElkNode?) -> KVector {
791 | var node = parent
792 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
793 | while let currentNode = node {
794 | resultPoint.add(-currentNode.x, -currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:888:30: warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
886 | var kgeIt = ElkGraphUtil.allContents(graph).makeIterator()
887 | while let kge = kgeIt.next() {
888 | if let kge = kge as? ElkGraphElement {
| `- warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
889 | if let node = kge as? ElkNode {
890 | configureWithDefaultValues(node)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:980:13: warning: variable 'allElements' was never mutated; consider changing to 'let' constant
978 | */
979 | package static func applyVisitors(_ graph: ElkNode, visitors: [IGraphElementVisitor]) throws {
980 | var allElements = ElkGraphUtil.propertiesSkippingIteratorFor(graph, true).makeIterator()
| `- warning: variable 'allElements' was never mutated; consider changing to 'let' constant
981 | while let nextElement = allElements.next() {
982 | if let graphElement = nextElement as? ElkGraphElement {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:109:29: warning: conditional cast from 'Double' to 'Double' always succeeds
107 | extension Number {
108 | package var doubleValue: Double {
109 | if let value = self as? Double {
| `- warning: conditional cast from 'Double' to 'Double' always succeeds
110 | return value
111 | } else if let value = self as? Float {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:111:36: warning: cast from 'Double' to unrelated type 'Float' always fails
109 | if let value = self as? Double {
110 | return value
111 | } else if let value = self as? Float {
| `- warning: cast from 'Double' to unrelated type 'Float' always fails
112 | return Double(value)
113 | } else if let value = self as? Int {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:113:36: warning: cast from 'Double' to unrelated type 'Int' always fails
111 | } else if let value = self as? Float {
112 | return Double(value)
113 | } else if let value = self as? Int {
| `- warning: cast from 'Double' to unrelated type 'Int' always fails
114 | return Double(value)
115 | } else if let value = self as? Int64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:115:36: warning: cast from 'Double' to unrelated type 'Int64' always fails
113 | } else if let value = self as? Int {
114 | return Double(value)
115 | } else if let value = self as? Int64 {
| `- warning: cast from 'Double' to unrelated type 'Int64' always fails
116 | return Double(value)
117 | } else if let value = self as? Int32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:117:36: warning: cast from 'Double' to unrelated type 'Int32' always fails
115 | } else if let value = self as? Int64 {
116 | return Double(value)
117 | } else if let value = self as? Int32 {
| `- warning: cast from 'Double' to unrelated type 'Int32' always fails
118 | return Double(value)
119 | } else if let value = self as? Int16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:119:36: warning: cast from 'Double' to unrelated type 'Int16' always fails
117 | } else if let value = self as? Int32 {
118 | return Double(value)
119 | } else if let value = self as? Int16 {
| `- warning: cast from 'Double' to unrelated type 'Int16' always fails
120 | return Double(value)
121 | } else if let value = self as? Int8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:121:36: warning: cast from 'Double' to unrelated type 'Int8' always fails
119 | } else if let value = self as? Int16 {
120 | return Double(value)
121 | } else if let value = self as? Int8 {
| `- warning: cast from 'Double' to unrelated type 'Int8' always fails
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:123:36: warning: cast from 'Double' to unrelated type 'UInt64' always fails
121 | } else if let value = self as? Int8 {
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
| `- warning: cast from 'Double' to unrelated type 'UInt64' always fails
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:125:36: warning: cast from 'Double' to unrelated type 'UInt32' always fails
123 | } else if let value = self as? UInt64 {
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
| `- warning: cast from 'Double' to unrelated type 'UInt32' always fails
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:127:36: warning: cast from 'Double' to unrelated type 'UInt16' always fails
125 | } else if let value = self as? UInt32 {
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
| `- warning: cast from 'Double' to unrelated type 'UInt16' always fails
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:129:36: warning: cast from 'Double' to unrelated type 'UInt8' always fails
127 | } else if let value = self as? UInt16 {
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
| `- warning: cast from 'Double' to unrelated type 'UInt8' always fails
130 | return Double(value)
131 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_PropertyConstantsDelegator.swift:24:66: warning: expression implicitly coerced from 'Any?' to 'Any'
22 | for optionId in algorithmData.getKnownOptionIds() {
23 | let defaultValue = algorithmData.getDefaultValue(optionId)
24 | let delegate = Property<Any>(optionId, defaultValue: defaultValue)
| |- warning: expression implicitly coerced from 'Any?' to 'Any'
| |- note: provide a default value to avoid this warning
| |- note: force-unwrap the value to avoid this warning
| `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
25 | delegator.addDelegate(delegate)
26 | }
[413/413] Compiling ElkSwift org_eclipse_elk_core_util_Triple.swift
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_AbstractRandomListAccessor.swift:96:13: warning: immutable value 'i' was never used; consider replacing with '_' or removing it
94 | */
95 | package func ensureListSize(size: Int) {
96 | for i in list.count..<size {
| `- warning: immutable value 'i' was never used; consider replacing with '_' or removing it
97 | list.append(provideDefault())
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:226:13: warning: variable 'newSize' was never mutated; consider changing to 'let' constant
224 | let oldSize = KVector(node.width, node.height)
225 |
226 | var newSize = effectiveMinSizeConstraintFor(node)
| `- warning: variable 'newSize' was never mutated; consider changing to 'let' constant
227 | newSize.x = max(newSize.x, newWidth)
228 | newSize.y = max(newSize.y, newHeight)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:322:17: warning: variable 'minSize' was never mutated; consider changing to 'let' constant
320 | let sizeOptions: SizeOptions = node.getProperty(CoreOptions.NODE_SIZE_OPTIONS) ?? []
321 | let minSizeVec: KVector = node.getProperty(CoreOptions.NODE_SIZE_MINIMUM) ?? KVector()
322 | var minSize = KVector(minSizeVec.x, minSizeVec.y)
| `- warning: variable 'minSize' was never mutated; consider changing to 'let' constant
323 |
324 | // If minimum width or height are not set, maybe default to default values
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:469:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
467 | }
468 |
469 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
470 |
471 | if let sourcePort = ElkGraphUtil.connectableShapeToPort(edge.sources[0]) {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:501:13: warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
499 |
500 | // Collection for the junction points of the current edge
501 | var junctionPoints = KVectorChain()
| `- warning: variable 'junctionPoints' was never mutated; consider changing to 'let' constant
502 |
503 | // Store the points of the edge in a map for efficiency
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:610:13: warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
608 | */
609 | package static func getPoints(_ section: ElkEdgeSection) -> [KVector] {
610 | let n = section.bendPoints.count + 2
| `- warning: initialization of immutable value 'n' was never used; consider replacing with assignment to '_' or removing it
611 | var points: [KVector] = []
612 |
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:687:28: warning: result of call to 'offset' is unused
685 | // Junction points
686 | if let junctionPoints: KVectorChain = edge.getProperty(CoreOptions.JUNCTION_POINTS) {
687 | junctionPoints.offset(xoffset, yoffset)
| `- warning: result of call to 'offset' is unused
688 | }
689 | }
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:775:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
773 | package static func toAbsolute(_ point: KVector, parent: ElkNode?) -> KVector {
774 | var node = parent
775 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
776 | while let currentNode = node {
777 | resultPoint.add(currentNode.x, currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:792:13: warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
790 | package static func toRelative(_ point: KVector, parent: ElkNode?) -> KVector {
791 | var node = parent
792 | var resultPoint = point
| `- warning: variable 'resultPoint' was never mutated; consider changing to 'let' constant
793 | while let currentNode = node {
794 | resultPoint.add(-currentNode.x, -currentNode.y)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:888:30: warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
886 | var kgeIt = ElkGraphUtil.allContents(graph).makeIterator()
887 | while let kge = kgeIt.next() {
888 | if let kge = kge as? ElkGraphElement {
| `- warning: conditional cast from 'any ElkGraphElement' to 'any ElkGraphElement' always succeeds
889 | if let node = kge as? ElkNode {
890 | configureWithDefaultValues(node)
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ElkUtil.swift:980:13: warning: variable 'allElements' was never mutated; consider changing to 'let' constant
978 | */
979 | package static func applyVisitors(_ graph: ElkNode, visitors: [IGraphElementVisitor]) throws {
980 | var allElements = ElkGraphUtil.propertiesSkippingIteratorFor(graph, true).makeIterator()
| `- warning: variable 'allElements' was never mutated; consider changing to 'let' constant
981 | while let nextElement = allElements.next() {
982 | if let graphElement = nextElement as? ElkGraphElement {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:109:29: warning: conditional cast from 'Double' to 'Double' always succeeds
107 | extension Number {
108 | package var doubleValue: Double {
109 | if let value = self as? Double {
| `- warning: conditional cast from 'Double' to 'Double' always succeeds
110 | return value
111 | } else if let value = self as? Float {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:111:36: warning: cast from 'Double' to unrelated type 'Float' always fails
109 | if let value = self as? Double {
110 | return value
111 | } else if let value = self as? Float {
| `- warning: cast from 'Double' to unrelated type 'Float' always fails
112 | return Double(value)
113 | } else if let value = self as? Int {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:113:36: warning: cast from 'Double' to unrelated type 'Int' always fails
111 | } else if let value = self as? Float {
112 | return Double(value)
113 | } else if let value = self as? Int {
| `- warning: cast from 'Double' to unrelated type 'Int' always fails
114 | return Double(value)
115 | } else if let value = self as? Int64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:115:36: warning: cast from 'Double' to unrelated type 'Int64' always fails
113 | } else if let value = self as? Int {
114 | return Double(value)
115 | } else if let value = self as? Int64 {
| `- warning: cast from 'Double' to unrelated type 'Int64' always fails
116 | return Double(value)
117 | } else if let value = self as? Int32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:117:36: warning: cast from 'Double' to unrelated type 'Int32' always fails
115 | } else if let value = self as? Int64 {
116 | return Double(value)
117 | } else if let value = self as? Int32 {
| `- warning: cast from 'Double' to unrelated type 'Int32' always fails
118 | return Double(value)
119 | } else if let value = self as? Int16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:119:36: warning: cast from 'Double' to unrelated type 'Int16' always fails
117 | } else if let value = self as? Int32 {
118 | return Double(value)
119 | } else if let value = self as? Int16 {
| `- warning: cast from 'Double' to unrelated type 'Int16' always fails
120 | return Double(value)
121 | } else if let value = self as? Int8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:121:36: warning: cast from 'Double' to unrelated type 'Int8' always fails
119 | } else if let value = self as? Int16 {
120 | return Double(value)
121 | } else if let value = self as? Int8 {
| `- warning: cast from 'Double' to unrelated type 'Int8' always fails
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:123:36: warning: cast from 'Double' to unrelated type 'UInt64' always fails
121 | } else if let value = self as? Int8 {
122 | return Double(value)
123 | } else if let value = self as? UInt64 {
| `- warning: cast from 'Double' to unrelated type 'UInt64' always fails
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:125:36: warning: cast from 'Double' to unrelated type 'UInt32' always fails
123 | } else if let value = self as? UInt64 {
124 | return Double(value)
125 | } else if let value = self as? UInt32 {
| `- warning: cast from 'Double' to unrelated type 'UInt32' always fails
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:127:36: warning: cast from 'Double' to unrelated type 'UInt16' always fails
125 | } else if let value = self as? UInt32 {
126 | return Double(value)
127 | } else if let value = self as? UInt16 {
| `- warning: cast from 'Double' to unrelated type 'UInt16' always fails
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_ExclusiveBounds.swift:129:36: warning: cast from 'Double' to unrelated type 'UInt8' always fails
127 | } else if let value = self as? UInt16 {
128 | return Double(value)
129 | } else if let value = self as? UInt8 {
| `- warning: cast from 'Double' to unrelated type 'UInt8' always fails
130 | return Double(value)
131 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/ElkSwift/ELK/org/eclipse/elk/core/util/org_eclipse_elk_core_util_PropertyConstantsDelegator.swift:24:66: warning: expression implicitly coerced from 'Any?' to 'Any'
22 | for optionId in algorithmData.getKnownOptionIds() {
23 | let defaultValue = algorithmData.getDefaultValue(optionId)
24 | let delegate = Property<Any>(optionId, defaultValue: defaultValue)
| |- warning: expression implicitly coerced from 'Any?' to 'Any'
| |- note: provide a default value to avoid this warning
| |- note: force-unwrap the value to avoid this warning
| `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
25 | delegator.addDelegate(delegate)
26 | }
BUILD FAILURE 6.0 macosSpm