You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 16, 2021. It is now read-only.
* Remove LinuxMain
* Update expectations to type, value, match, and error
* Refactor scanning logic into Scanner type
* Fix Scanner regular expression pattern
Add test for Scanner
* Internalize inessential APIs
* Extract tests into separate files
* Add changelog entries for #30
* Update README
* Add CI badge to README
* Feed source file into REPL when not running in package context
* Log notice for blocks without any import statements when running through SPM
logger.info("Found DocTest block at \(assumedFileName)#\(match.line):\(match.column)\n\(match.content)")
89
+
90
+
varlineOffset= match.line
91
+
varcode= match.content
92
+
if options.runThroughPackageManager {
93
+
if source.range(of:#"^import \w"#, options:[.regularExpression])==nil{
94
+
logger.notice("No import statements found at \(assumedFileName)#\(match.line):\(match.column). This may cause unexpected API resolution failures when running through Swift Package Manager.")
95
+
}
101
96
}else{
102
-
position ="\(range.lowerBound.utf16Offset(in: source)) – \(range.upperBound.utf16Offset(in: source))"
0 commit comments