@@ -24,11 +24,11 @@ struct RawComment;
24
24
class DocComment {
25
25
public:
26
26
struct CommentParts {
27
- Optional<const llvm ::markup::Paragraph *>Brief;
28
- ArrayRef<const llvm ::markup::MarkupASTNode *> BodyNodes;
29
- ArrayRef<const llvm ::markup::ParamField *> ParamFields;
30
- Optional<const llvm ::markup::ReturnsField *> ReturnsField;
31
- Optional<const llvm ::markup::ThrowsField *> ThrowsField;
27
+ Optional<const swift ::markup::Paragraph *>Brief;
28
+ ArrayRef<const swift ::markup::MarkupASTNode *> BodyNodes;
29
+ ArrayRef<const swift ::markup::ParamField *> ParamFields;
30
+ Optional<const swift ::markup::ReturnsField *> ReturnsField;
31
+ Optional<const swift ::markup::ThrowsField *> ThrowsField;
32
32
33
33
bool isEmpty () const {
34
34
return !Brief.hasValue () && !ReturnsField.hasValue () && !ThrowsField.hasValue () && BodyNodes.empty () && ParamFields.empty ();
@@ -37,39 +37,39 @@ class DocComment {
37
37
38
38
private:
39
39
const Decl *D;
40
- const llvm ::markup::Document *Doc = nullptr ;
40
+ const swift ::markup::Document *Doc = nullptr ;
41
41
const CommentParts Parts;
42
42
43
43
public:
44
- DocComment (const Decl *D, llvm ::markup::Document *Doc,
44
+ DocComment (const Decl *D, swift ::markup::Document *Doc,
45
45
CommentParts Parts)
46
46
: D(D), Doc(Doc), Parts(Parts) {}
47
47
48
48
const Decl *getDecl () const { return D; }
49
49
50
- const llvm ::markup::Document *getDocument () const { return Doc; }
50
+ const swift ::markup::Document *getDocument () const { return Doc; }
51
51
52
52
CommentParts getParts () const {
53
53
return Parts;
54
54
}
55
55
56
- Optional<const llvm ::markup::Paragraph *> getBrief () const {
56
+ Optional<const swift ::markup::Paragraph *> getBrief () const {
57
57
return Parts.Brief ;
58
58
}
59
59
60
- Optional<const llvm ::markup::ReturnsField * >getReturnsField () const {
60
+ Optional<const swift ::markup::ReturnsField * >getReturnsField () const {
61
61
return Parts.ReturnsField ;
62
62
}
63
63
64
- Optional<const llvm ::markup::ThrowsField*> getThrowsField () const {
64
+ Optional<const swift ::markup::ThrowsField*> getThrowsField () const {
65
65
return Parts.ThrowsField ;
66
66
}
67
67
68
- ArrayRef<const llvm ::markup::ParamField *> getParamFields () const {
68
+ ArrayRef<const swift ::markup::ParamField *> getParamFields () const {
69
69
return Parts.ParamFields ;
70
70
}
71
71
72
- ArrayRef<const llvm ::markup::MarkupASTNode *> getBodyNodes () const {
72
+ ArrayRef<const swift ::markup::MarkupASTNode *> getBodyNodes () const {
73
73
return Parts.BodyNodes ;
74
74
}
75
75
@@ -79,7 +79,7 @@ class DocComment {
79
79
80
80
// Only allow allocation using the allocator in MarkupContext or by
81
81
// placement new.
82
- void *operator new (size_t Bytes, llvm ::markup::MarkupContext &MC,
82
+ void *operator new (size_t Bytes, swift ::markup::MarkupContext &MC,
83
83
unsigned Alignment = alignof(DocComment));
84
84
void *operator new (size_t Bytes, void *Mem) {
85
85
assert (Mem);
@@ -91,7 +91,7 @@ class DocComment {
91
91
void operator delete (void *Data) = delete ;
92
92
};
93
93
94
- Optional<DocComment *>getDocComment (llvm ::markup::MarkupContext &Context,
94
+ Optional<DocComment *>getDocComment (swift ::markup::MarkupContext &Context,
95
95
const Decl *D);
96
96
97
97
} // namespace swift
0 commit comments