[NFC] AST: Define TypeRepr::isParenType()

This commit is contained in:
Anthony Latsis
2024-04-21 20:20:13 +03:00
parent 8493312b06
commit 5a2316ce4b
2 changed files with 14 additions and 6 deletions

View File

@@ -184,6 +184,10 @@ public:
/// opaque return type reprs.
bool hasOpaque();
/// Returns a Boolean value indicating whether this written type is
/// parenthesized, that is, matches the following grammar: `'(' type ')'`.
bool isParenType() const;
/// Retrieve the type repr without any parentheses around it.
///
/// The use of this function must be restricted to contexts where