Closed kabirkhaan closed 1 year ago
Why canImport
is needed?
https://github.com/uber/mockolo/blob/2b425df144b0a1e61bf2202d481637741b2b3270/Package.swift#L8
We can import SwiftSyntax
anytime. and StringExtensions.swift
does not have dependency to SwiftSyntaxParser
.
Why
canImport
is needed?https://github.com/uber/mockolo/blob/2b425df144b0a1e61bf2202d481637741b2b3270/Package.swift#L8
We can import
SwiftSyntax
anytime. andStringExtensions.swift
does not have dependency toSwiftSyntaxParser
.
Thanks for the clarification, I missed that line. Closing this PR
Issue In
StringExtension
SwiftSyntax
was directly imported without acanImport
check https://github.com/uber/mockolo/blob/2b425df144b0a1e61bf2202d481637741b2b3270/Sources/MockoloFramework/Utils/StringExtensions.swift#L18Changelog
SwiftSyntax
andSwiftSyntaxParser
imports insidecanImport