Skip to content

Commit

Permalink
Removed Coverage and Report
Browse files Browse the repository at this point in the history
  • Loading branch information
ikhvorost committed Feb 24, 2024
1 parent 726825a commit b11bbfe
Show file tree
Hide file tree
Showing 8 changed files with 232 additions and 335 deletions.
201 changes: 0 additions & 201 deletions Sources/SwiftSource/Coverage.swift

This file was deleted.

62 changes: 0 additions & 62 deletions Sources/SwiftSource/Report.swift

This file was deleted.

2 changes: 1 addition & 1 deletion Sources/SwiftSource/SwiftComment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct SwiftComment {
}
}

public var hasDoc: Bool {
public var isDoc: Bool {
switch piece {
case .docLineComment: fallthrough
case .docBlockComment: return true
Expand Down
4 changes: 4 additions & 0 deletions Sources/SwiftSource/SwiftDeclaration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ public struct SwiftDeclaration {
public let name: String
public let line: Int
public let column: Int

public var isDocumented: Bool {
comments.first { $0.isDoc } != nil
}

@StringBuilder
private static func buildName(decl: DeclProtocol, path: String?) -> String {
Expand Down
1 change: 0 additions & 1 deletion Sources/SwiftSource/Visitor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import SwiftParser
class Visitor: SyntaxVisitor {
private var context = [DeclProtocol]()
private let converter: SourceLocationConverter

private(set) var declarations = [SwiftDeclaration]()

init(source: String) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

import Foundation

public class Output {
class Output {
let stream: UnsafeMutablePointer<FILE>

init(stream: UnsafeMutablePointer<FILE>) {
Expand All @@ -36,16 +36,16 @@ public class Output {
}
}

public class TerminalOutput: Output {
class TerminalOutput: Output {

public init() {
init() {
super.init(stream: Darwin.stdout)
}
}

public class FileOutput: Output {
class FileOutput: Output {

public init(path: String) throws {
init(path: String) throws {
let dirPath = NSString(string: path).deletingLastPathComponent
if FileManager.default.fileExists(atPath: dirPath) == false {
try FileManager.default.createDirectory(atPath: dirPath, withIntermediateDirectories: true)
Expand Down
Loading

0 comments on commit b11bbfe

Please sign in to comment.