mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Parse] Allow named opaque types in more places
- Allow named opaque types in typed patterns and subscripts - Fix inheritance clause printing for `GenericParamList` - clang-format changes from previous commit on this branch
This commit is contained in:
@@ -1223,6 +1223,13 @@ public:
|
||||
ParserResult<TypeRepr> parseType(Diag<> MessageID,
|
||||
bool IsSILFuncDecl = false);
|
||||
|
||||
/// Parse a type optionally prefixed by a list of named opaque parameters. If
|
||||
/// no params present, return 'type'. Otherwise, return 'type-named-opaque'.
|
||||
///
|
||||
/// type-named-opaque:
|
||||
/// generic-params type
|
||||
ParserResult<TypeRepr> parseTypeWithOpaqueParams(Diag<> MessageID);
|
||||
|
||||
ParserResult<TypeRepr>
|
||||
parseTypeSimpleOrComposition(Diag<> MessageID);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user