Skip to content

Commit 3263569

Browse files
committed
[Diagnostics] handle ‘open’ access control; introduce %error modifier
1 parent 96f2a04 commit 3263569

File tree

6 files changed

+128
-104
lines changed

6 files changed

+128
-104
lines changed

include/swift/AST/DiagnosticsParse.def

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ ERROR(enum_case_dot_prefix,none,
202202

203203
// Variable getters/setters
204204
ERROR(static_var_decl_global_scope,none,
205-
"%select{ERROR|static properties|class properties}0 may only be declared on a type",
205+
"%select{%error|static properties|class properties}0 may only be declared on a type",
206206
(StaticSpellingKind))
207207
ERROR(computed_property_no_accessors, none,
208208
"computed property must have accessors specified", ())
@@ -222,7 +222,7 @@ ERROR(conflicting_property_addressor,none,
222222
"%select{variable|subscript}0 already has a "
223223
"%select{addressor|mutable addressor}1", (unsigned, unsigned))
224224
ERROR(expected_accessor_name,none,
225-
"expected %select{GETTER|setter|willSet|didSet}0 parameter name",
225+
"expected %select{%error|setter|willSet|didSet}0 parameter name",
226226
(unsigned))
227227
ERROR(expected_rparen_set_name,none,
228228
"expected ')' after setter parameter name",())
@@ -292,7 +292,7 @@ ERROR(associated_type_generic_parameter_list,PointsToFirstBadToken,
292292
ERROR(func_decl_without_paren,PointsToFirstBadToken,
293293
"expected '(' in argument list of function declaration", ())
294294
ERROR(static_func_decl_global_scope,none,
295-
"%select{ERROR|static methods|class methods}0 may only be declared on a type",
295+
"%select{%error|static methods|class methods}0 may only be declared on a type",
296296
(StaticSpellingKind))
297297
ERROR(func_decl_expected_arrow,none,
298298
"expected '->' after function parameter tuple", ())

0 commit comments

Comments
 (0)