We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c5365d4 + 4be7828 commit 9ca298aCopy full SHA for 9ca298a
include/swift/AST/Decl.h
@@ -2332,17 +2332,17 @@ class PoundDiagnosticDecl : public Decl {
2332
Bits.PoundDiagnosticDecl.HasBeenEmitted = false;
2333
}
2334
2335
- DiagnosticKind getKind() {
+ DiagnosticKind getKind() const {
2336
return isError() ? DiagnosticKind::Error : DiagnosticKind::Warning;
2337
2338
2339
- StringLiteralExpr *getMessage() { return Message; }
+ StringLiteralExpr *getMessage() const { return Message; }
2340
2341
- bool isError() {
+ bool isError() const {
2342
return Bits.PoundDiagnosticDecl.IsError;
2343
2344
2345
- bool hasBeenEmitted() {
+ bool hasBeenEmitted() const {
2346
return Bits.PoundDiagnosticDecl.HasBeenEmitted;
2347
2348
0 commit comments