diff --git a/include/swift/Parse/Parser.h b/include/swift/Parse/Parser.h index 3251f7dd7d3da..4622c9cd36b06 100644 --- a/include/swift/Parse/Parser.h +++ b/include/swift/Parse/Parser.h @@ -183,7 +183,7 @@ class Parser { bool allowTopLevelCode() const; - const std::vector &getSplitTokens() { return SplitTokens; } + const std::vector &getSplitTokens() const { return SplitTokens; } void markSplitToken(tok Kind, StringRef Txt);