-
Notifications
You must be signed in to change notification settings - Fork 10.4k
/
Copy pathcomment_measurement.swift
58 lines (45 loc) · 3.84 KB
/
comment_measurement.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// RUN: %target-swift-ide-test -print-comments -source-filename %s -comments-xml-schema %S/../../bindings/xml/comment-xml-schema.rng | %FileCheck %s
/// Brief.
///
/// This is not a code block.
func spaceLineMeasurement() {}
/**
Brief.
This is not a code block.
*/
func spaceBlockMeasurement() {}
/// Brief.
///
/// This is not a code block.
func tabLineMeasurement() {}
/**
Brief.
This is not a code block.
*/
func tabBlockMeasurement() {}
/// Brief.
///
/// This is not a code block.
func spaceLineMeasurementIndented() {}
/**
Brief.
This is not a code block.
*/
func spaceBlockMeasurementIndented() {}
/// Brief.
///
/// This is not a code block.
func tabLineMeasurementIndented() {}
/**
Brief.
This is not a code block.
*/
func tabBlockMeasurementIndented() {}
// CHECK: {{.*}} DocCommentAsXML=[<Function file="{{.*}}" line="{{.*}}" column="{{.*}}"><Name>spaceLineMeasurement()</Name><USR>s:14swift_ide_test20spaceLineMeasurementyyF</USR><Declaration>func spaceLineMeasurement()</Declaration><CommentParts><Abstract><Para>Brief.</Para></Abstract><Discussion><Para>This is not a code block.</Para></Discussion></CommentParts></Function>]
// CHECK: {{.*}} DocCommentAsXML=[<Function file="{{.*}}" line="{{.*}}" column="{{.*}}"><Name>spaceBlockMeasurement()</Name><USR>s:14swift_ide_test21spaceBlockMeasurementyyF</USR><Declaration>func spaceBlockMeasurement()</Declaration><CommentParts><Abstract><Para>Brief.</Para></Abstract><Discussion><Para>This is not a code block.</Para></Discussion></CommentParts></Function>]
// CHECK: {{.*}} DocCommentAsXML=[<Function file="{{.*}}" line="{{.*}}" column="{{.*}}"><Name>tabLineMeasurement()</Name><USR>s:14swift_ide_test18tabLineMeasurementyyF</USR><Declaration>func tabLineMeasurement()</Declaration><CommentParts><Abstract><Para>Brief.</Para></Abstract><Discussion><Para>This is not a code block.</Para></Discussion></CommentParts></Function>]
// CHECK: {{.*}} DocCommentAsXML=[<Function file="{{.*}}" line="{{.*}}" column="{{.*}}"><Name>tabBlockMeasurement()</Name><USR>s:14swift_ide_test19tabBlockMeasurementyyF</USR><Declaration>func tabBlockMeasurement()</Declaration><CommentParts><Abstract><Para>Brief.</Para></Abstract><Discussion><Para>This is not a code block.</Para></Discussion></CommentParts></Function>]
// CHECK: {{.*}} DocCommentAsXML=[<Function file="{{.*}}" line="{{.*}}" column="{{.*}}"><Name>spaceLineMeasurementIndented()</Name><USR>s:14swift_ide_test28spaceLineMeasurementIndentedyyF</USR><Declaration>func spaceLineMeasurementIndented()</Declaration><CommentParts><Abstract><Para>Brief.</Para></Abstract><Discussion><Para>This is not a code block.</Para></Discussion></CommentParts></Function>]
// CHECK: {{.*}} DocCommentAsXML=[<Function file="{{.*}}" line="{{.*}}" column="{{.*}}"><Name>spaceBlockMeasurementIndented()</Name><USR>s:14swift_ide_test29spaceBlockMeasurementIndentedyyF</USR><Declaration>func spaceBlockMeasurementIndented()</Declaration><CommentParts><Abstract><Para>Brief.</Para></Abstract><Discussion><Para>This is not a code block.</Para></Discussion></CommentParts></Function>]
// CHECK: {{.*}} DocCommentAsXML=[<Function file="{{.*}}" line="{{.*}}" column="{{.*}}"><Name>tabLineMeasurementIndented()</Name><USR>s:14swift_ide_test26tabLineMeasurementIndentedyyF</USR><Declaration>func tabLineMeasurementIndented()</Declaration><CommentParts><Abstract><Para>Brief.</Para></Abstract><Discussion><Para>This is not a code block.</Para></Discussion></CommentParts></Function>]
// CHECK: {{.*}} DocCommentAsXML=[<Function file="{{.*}}" line="{{.*}}" column="{{.*}}"><Name>tabBlockMeasurementIndented()</Name><USR>s:14swift_ide_test27tabBlockMeasurementIndentedyyF</USR><Declaration>func tabBlockMeasurementIndented()</Declaration><CommentParts><Abstract><Para>Brief.</Para></Abstract><Discussion><Para>This is not a code block.</Para></Discussion></CommentParts></Function>]