mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] AST: Define TypeRepr::isParenType()
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user