Skip to content

Static members of enums and structs not documented #66

@appfrilans

Description

@appfrilans

Brief Description

SourceDocs does not seems to support "caseless enums" or static members of structs

Steps to Reproduce

Create a swift file with this content:

/**
 A description here 1
 */
public struct Constants {
    /**
     A description here 2
     */
    public static let myContant = "constant"
}

or

/**
 A description here 3
 */
public enum Constants {
    /**
     A description here 4
     */
    public static let myContant = "constant"
}
  1. Step 2
  2. Step 3

Expected Outcome

For the "A description here 2" to appear in the corresponding generated documentation.

Actual Outcome

The static constant is not mentionedin the documentation file for Constants

Environment

  • Operating System: macOS 11.1
  • Xcode Version: 12.3
  • SwiftDocs Version/SHA: SourceDocs v1.2.1
  • Swift version: 5.0

Additional Comments

Demo Project

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions