// RUN: %target-swift-ide-test -print-comments -source-filename %s -comments-xml-schema %S/../../bindings/xml/comment-xml-schema.rng | FileCheck %s /// - attention: This function is so hip and exciting, it can't be trusted. func attention() {} // CHECK: {{.*}}DocCommentAsXML=[attention()s:F14swift_ide_test9attentionFT_T_func attention()This function is so hip and exciting, it can't be trusted.] /// - author: Stephen func author() {} // CHECK: {{.*}}DocCommentAsXML=[author()s:F14swift_ide_test6authorFT_T_func author()Stephen] /// - authors: /// - Homer /// - Mark /// - J. func authors() {} // CHECK: {{.*}}DocCommentAsXML=[authors()s:F14swift_ide_test7authorsFT_T_func authors()HomerMarkJ.] /// - bug: rdar://problem/8675309 func bug() {} // CHECK: {{.*}}DocCommentAsXML=[bug()s:F14swift_ide_test3bugFT_T_func bug()rdar://problem/8675309] /// - complexity: O(n log2(n)) func complexity() {} // CHECK: {{.*}}DocCommentAsXML=[complexity()s:F14swift_ide_test10complexityFT_T_func complexity()O(n log2(n))] /// - copyright: 2015 Apple, Inc. func copyright() {} // CHECK: {{.*}}DocCommentAsXML=[copyright()s:F14swift_ide_test9copyrightFT_T_func copyright()2015 Apple, Inc.] /// - date: Thu Apr 23 22:38:09 PDT 2015 func date() {} // CHECK: {{.*}}DocCommentAsXML=[date()s:F14swift_ide_test4dateFT_T_func date()Thu Apr 23 22:38:09 PDT 2015] /// - experiment: Try some more. The strawberries taste like strawberries. func experiment() {} // CHECK: {{.*}}DocCommentAsXML=[experiment()s:F14swift_ide_test10experimentFT_T_func experiment()Try some more. The strawberries taste like strawberries.] /// - invariant: x not nil struct Invariant { let x: Int! } // CHECK: {{.*}}DocCommentAsXML=[Invariants:V14swift_ide_test9Invariantstruct Invariantx not nil] // CHECK: {{.*}}DocCommentAsXML=none /// - note: This function is very hip and exciting. func note() {} // CHECK: {{.*}}DocCommentAsXML=[note()s:F14swift_ide_test4noteFT_T_func note()This function is very hip and exciting.] /// - postcondition: x is unchanged func postcondition(inout x: Int) {} // CHECK: {{.*}}DocCommentAsXML=[postcondition(_:)s:F14swift_ide_test13postconditionFRSiT_func postcondition(inout x: Int)x is unchanged] // CHECK: {{.*}}DocCommentAsXML=none /// - precondition: `x < 100` func precondition(x: Int) { assert(x < 100) } // CHECK: {{.*}}DocCommentAsXML=[precondition(_:)s:F14swift_ide_test12preconditionFSiT_func precondition(x: Int)x < 100] // CHECK: {{.*}}DocCommentAsXML=none /// - remark: Always, no, never forget to check your references. func remark() {} // CHECK: {{.*}}DocCommentAsXML=[remark()s:F14swift_ide_test6remarkFT_T_func remark()Always, no, never forget to check your references.] /// - remarks: /// - Never let a bear approach you. func remarks() {} // CHECK: {{.*}}DocCommentAsXML=[remarks()s:F14swift_ide_test7remarksFT_T_func remarks()Never let a bear approach you.] /// - seealso: the pie (it's very good). func see() {} // CHECK: {{.*}}DocCommentAsXML=[see()s:F14swift_ide_test3seeFT_T_func see()the pie (it's very good).] /// - since: 1809 func since() {} // CHECK: {{.*}}DocCommentAsXML=[since()s:F14swift_ide_test5sinceFT_T_func since()1809] /// - todo: be /// - todo: or not to be func todo() {} // CHECK: {{.*}}DocCommentAsXML=[todo()s:F14swift_ide_test4todoFT_T_func todo()beor not to be] /// - version: Beta. func version() {} // CHECK: {{.*}}DocCommentAsXML=[version()s:F14swift_ide_test7versionFT_T_func version()Beta.] /// - warning: Share the road. func warning() {} // CHECK: {{.*}}DocCommentAsXML=[warning()s:F14swift_ide_test7warningFT_T_func warning()Share the road.]