0001 // 0002 // Documentation.swift 0003 // SourceKitten 0004 // 0005 // Created by JP Simard on 10/27/15. 0006 // Copyright © 2015 SourceKitten. All rights reserved. 0007 // 0008 0009 #if SWIFT_PACKAGE 0010 import Clang_C 0011 #endif 0012 0013 public struct Documentation{ 0014 let parameters
SourceDeclaration.swift:39 let documentation: Documentation?SourceDeclaration.swift:99 documentation = Documentation(comment: cursor.parsedComment()): [Parameter] 0015 let returnDiscussion
Documentation.swift:19 parameters = comments.filter {JSONOutput.swift:90 setA(.DocParameters, decl.documentation?.parameters.map(toOutputDictionary)): [Text] 0016 0017 init
Documentation.swift:22 returnDiscussion = comments.filter {JSONOutput.swift:89 setA(.DocResultDiscussion, decl.documentation?.returnDiscussion.map(toOutputDictionary))(comment: CXComment) { 0018 let comments = (0..<comment.count()).map { comment[$0] } 0019 parameters = comments.filter { 0020 $0.kind() == CXComment_ParamCommand 0021 }.map(Parameter.init) 0022 returnDiscussion = comments.filter { 0023 $0.kind() == CXComment_BlockCommand && $0.commandName() == "return" 0024 }.flatMap { 0025 $0.paragraphToString() 0026 } 0027 } 0028 } 0029
SourceDeclaration.swift:99 documentation = Documentation(comment: cursor.parsedComment())