Skip to content

Commit 1a4c07a

Browse files
authored
Merge pull request #16425 from github/cklin/swift-entities-reorder
Swift: Use entities in reorder directives
2 parents f104760 + e68165f commit 1a4c07a

File tree

10 files changed

+45
-45
lines changed

10 files changed

+45
-45
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
description: revert removal of IterableDeclContext
22
compatibility: partial
33

4-
iterable_decl_context_members.rel: reorder decl_members.rel (int id, int index, int member) id index member
4+
iterable_decl_context_members.rel: reorder decl_members.rel (@decl id, int index, @decl_or_none member) id index member
55
decl_members.rel: delete

swift/downgrades/5559b5a367524777b3f6ef3fc285ae81031ca1da/upgrade.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ description: Revert moving getName() from AbstractFunctionDecl to Callable
22
compatibility: backwards
33

44
// Rename callable_names to abstract_function_decls
5-
abstract_function_decls.rel: reorder callable_names.rel (int id, string name) id name
5+
abstract_function_decls.rel: reorder callable_names.rel (@callable id, string name) id name
66
callable_names.rel: delete
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
11
description: Revert renaming the Function hierarchy
22
compatibility: full
33

4-
abstract_storage_decl_accessor_decls.rel: reorder abstract_storage_decl_accessors (int id, int index, int accessor) id index accessor
4+
abstract_storage_decl_accessor_decls.rel: reorder abstract_storage_decl_accessors (@abstract_storage_decl id, int index, @accessor_or_none accessor) id index accessor
55
abstract_storage_decl_accessors.rel: delete
66

7-
destructor_decls.rel: reorder deinitializers (int id) id
7+
destructor_decls.rel: reorder deinitializers (@deinitializer id) id
88
deinitializers.rel: delete
99

10-
constructor_decls.rel: reorder initializers (int id) id
10+
constructor_decls.rel: reorder initializers (@initializer id) id
1111
initializers.rel: delete
1212

13-
accessor_decls.rel: reorder accessors (int id) id
13+
accessor_decls.rel: reorder accessors (@accessor id) id
1414
accessors.rel: delete
1515

16-
accessor_decl_is_getter.rel: reorder accessor_is_getter (int id) id
16+
accessor_decl_is_getter.rel: reorder accessor_is_getter (@accessor id) id
1717
accessor_is_getter.rel: delete
1818

19-
accessor_decl_is_setter.rel: reorder accessor_is_setter (int id) id
19+
accessor_decl_is_setter.rel: reorder accessor_is_setter (@accessor id) id
2020
accessor_is_setter.rel: delete
2121

22-
accessor_decl_is_will_set.rel: reorder accessor_is_will_set (int id) id
22+
accessor_decl_is_will_set.rel: reorder accessor_is_will_set (@accessor id) id
2323
accessor_is_will_set.rel: delete
2424

25-
accessor_decl_is_did_set.rel: reorder accessor_is_did_set (int id) id
25+
accessor_decl_is_did_set.rel: reorder accessor_is_did_set (@accessor id) id
2626
accessor_is_did_set.rel: delete
2727

28-
accessor_decl_is_read.rel: reorder accessor_is_read (int id) id
28+
accessor_decl_is_read.rel: reorder accessor_is_read (@accessor id) id
2929
accessor_is_read.rel: delete
3030

31-
accessor_decl_is_modify.rel: reorder accessor_is_modify (int id) id
31+
accessor_decl_is_modify.rel: reorder accessor_is_modify (@accessor id) id
3232
accessor_is_modify.rel: delete
3333

34-
accessor_decl_is_unsafe_address.rel: reorder accessor_is_unsafe_address (int id) id
34+
accessor_decl_is_unsafe_address.rel: reorder accessor_is_unsafe_address (@accessor id) id
3535
accessor_is_unsafe_address.rel: delete
3636

37-
accessor_decl_is_unsafe_mutable_address.rel: reorder accessor_is_unsafe_mutable_address (int id) id
37+
accessor_decl_is_unsafe_mutable_address.rel: reorder accessor_is_unsafe_mutable_address (@accessor id) id
3838
accessor_is_unsafe_mutable_address.rel: delete
3939

40-
concrete_func_decls.rel: reorder named_functions (int id) id
40+
concrete_func_decls.rel: reorder named_functions (@named_function id) id
4141
named_functions.rel: delete
4242

43-
lazy_initializer_exprs.rel: reorder lazy_initialization_exprs (int id, int sub_expr) id sub_expr
43+
lazy_initializer_exprs.rel: reorder lazy_initialization_exprs (@lazy_initialization_expr id, @expr_or_none sub_expr) id sub_expr
4444
lazy_initialization_exprs.rel: delete
4545

46-
other_constructor_decl_ref_exprs.rel: reorder other_initializer_ref_exprs (int id, int constructor_decl) id constructor_decl
46+
other_constructor_decl_ref_exprs.rel: reorder other_initializer_ref_exprs (@other_initializer_ref_expr id, @initializer_or_none constructor_decl) id constructor_decl
4747
other_initializer_ref_exprs.rel: delete
4848

49-
rebind_self_in_constructor_exprs.rel: reorder rebind_self_in_initializer_exprs (int id, int sub_expr, int self) id sub_expr self
49+
rebind_self_in_constructor_exprs.rel: reorder rebind_self_in_initializer_exprs (@rebind_self_in_initializer_expr id, @expr_or_none sub_expr, @var_decl_or_none self) id sub_expr self
5050
rebind_self_in_initializer_exprs.rel: delete
5151

52-
closure_exprs.rel: reorder explicit_closure_exprs (int id) id
52+
closure_exprs.rel: reorder explicit_closure_exprs (@explicit_closure_expr id) id
5353
explicit_closure_exprs.rel: delete
5454

55-
constructor_ref_call_exprs.rel: reorder initializer_ref_call_exprs (int id) id
55+
constructor_ref_call_exprs.rel: reorder initializer_ref_call_exprs (@initializer_ref_call_expr id) id
5656
initializer_ref_call_exprs.rel: delete
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
description: Undo rename `base_types` to `inherited_types` in `@type_decl
22
compatibility: full
3-
type_decl_base_types.rel: reorder type_decl_inherited_types(int id, int index, int type) id index type
3+
type_decl_base_types.rel: reorder type_decl_inherited_types(@type_decl id, int index, @type_or_none type) id index type
44
type_decl_inherited_types.rel: delete
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
description: Revert adding full extraction of regex literal expressions
22
compatibility: full
3-
regex_literal_exprs.rel: reorder regex_literal_exprs.rel (int id, string pattern, int version) id
3+
regex_literal_exprs.rel: reorder regex_literal_exprs.rel (@regex_literal_expr id, string pattern, int version) id
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
description: Rename `base_types` to `inherited_types` in `@type_decl
22
compatibility: full
3-
type_decl_inherited_types.rel: reorder type_decl_base_types(int id, int index, int type) id index type
3+
type_decl_inherited_types.rel: reorder type_decl_base_types(@type_decl id, int index, @type_or_none type) id index type
44
type_decl_base_types.rel: delete

swift/ql/lib/upgrades/62fc609c1ab6ae748ff51362ffa5c368ba834ddf/upgrade.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ description: Move getName() from AbstractFunctionDecl to Callable
22
compatibility: full
33

44
// Rename abstract_function_decls to callable_names
5-
callable_names.rel: reorder abstract_function_decls.rel (int id, string name) id name
5+
callable_names.rel: reorder abstract_function_decls.rel (@abstract_function_decl id, string name) id name
66
abstract_function_decls.rel: delete
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
description: remove IterableDeclContext
22
compatibility: full
33

4-
decl_members.rel: reorder iterable_decl_context_members.rel (int id, int index, int member) id index member
4+
decl_members.rel: reorder iterable_decl_context_members.rel (@iterable_decl_context id, int index, @decl_or_none member) id index member
55
iterable_decl_context_members.rel: delete
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
description: Turn exported and imported modules into unindexed sets
22
compatibility: full
3-
module_decl_imported_modules.rel: reorder module_decl_imported_modules(int id, int index, int imported) id imported
4-
module_decl_exported_modules.rel: reorder module_decl_exported_modules(int id, int index, int exported) id exported
3+
module_decl_imported_modules.rel: reorder module_decl_imported_modules(@module_decl id, int index, @module_decl_or_none imported) id imported
4+
module_decl_exported_modules.rel: reorder module_decl_exported_modules(@module_decl id, int index, @module_decl_or_none exported) id exported
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
11
description: rename the Function hierarchy
22
compatibility: full
33

4-
abstract_storage_decl_accessors.rel: reorder abstract_storage_decl_accessor_decls (int id, int index, int accessor_decl) id index accessor_decl
4+
abstract_storage_decl_accessors.rel: reorder abstract_storage_decl_accessor_decls (@abstract_storage_decl id, int index, @accessor_decl_or_none accessor_decl) id index accessor_decl
55
abstract_storage_decl_accessor_decls.rel: delete
66

7-
deinitializers.rel: reorder destructor_decls (int id) id
7+
deinitializers.rel: reorder destructor_decls (@destructor_decl id) id
88
destructor_decls.rel: delete
99

10-
initializers.rel: reorder constructor_decls (int id) id
10+
initializers.rel: reorder constructor_decls (@constructor_decl id) id
1111
constructor_decls.rel: delete
1212

13-
accessors.rel: reorder accessor_decls (int id) id
13+
accessors.rel: reorder accessor_decls (@accessor_decl id) id
1414
accessor_decls.rel: delete
1515

16-
accessor_is_getter.rel: reorder accessor_decl_is_getter (int id) id
16+
accessor_is_getter.rel: reorder accessor_decl_is_getter (@accessor_decl id) id
1717
accessor_decl_is_getter.rel: delete
1818

19-
accessor_is_setter.rel: reorder accessor_decl_is_setter (int id) id
19+
accessor_is_setter.rel: reorder accessor_decl_is_setter (@accessor_decl id) id
2020
accessor_decl_is_setter.rel: delete
2121

22-
accessor_is_will_set.rel: reorder accessor_decl_is_will_set (int id) id
22+
accessor_is_will_set.rel: reorder accessor_decl_is_will_set (@accessor_decl id) id
2323
accessor_decl_is_will_set.rel: delete
2424

25-
accessor_is_did_set.rel: reorder accessor_decl_is_did_set (int id) id
25+
accessor_is_did_set.rel: reorder accessor_decl_is_did_set (@accessor_decl id) id
2626
accessor_decl_is_did_set.rel: delete
2727

28-
accessor_is_read.rel: reorder accessor_decl_is_read (int id) id
28+
accessor_is_read.rel: reorder accessor_decl_is_read (@accessor_decl id) id
2929
accessor_decl_is_read.rel: delete
3030

31-
accessor_is_modify.rel: reorder accessor_decl_is_modify (int id) id
31+
accessor_is_modify.rel: reorder accessor_decl_is_modify (@accessor_decl id) id
3232
accessor_decl_is_modify.rel: delete
3333

34-
accessor_is_unsafe_address.rel: reorder accessor_decl_is_unsafe_address (int id) id
34+
accessor_is_unsafe_address.rel: reorder accessor_decl_is_unsafe_address (@accessor_decl id) id
3535
accessor_decl_is_unsafe_address.rel: delete
3636

37-
accessor_is_unsafe_mutable_address.rel: reorder accessor_decl_is_unsafe_mutable_address (int id) id
37+
accessor_is_unsafe_mutable_address.rel: reorder accessor_decl_is_unsafe_mutable_address (@accessor_decl id) id
3838
accessor_decl_is_unsafe_mutable_address.rel: delete
3939

40-
named_functions.rel: reorder concrete_func_decls (int id) id
40+
named_functions.rel: reorder concrete_func_decls (@concrete_func_decl id) id
4141
concrete_func_decls.rel: delete
4242

43-
lazy_initialization_exprs.rel: reorder lazy_initializer_exprs (int id, int sub_expr) id sub_expr
43+
lazy_initialization_exprs.rel: reorder lazy_initializer_exprs (@lazy_initializer_expr id, @expr_or_none sub_expr) id sub_expr
4444
lazy_initializer_exprs.rel: delete
4545

46-
other_initializer_ref_exprs.rel: reorder other_constructor_decl_ref_exprs (int id, int constructor_decl) id constructor_decl
46+
other_initializer_ref_exprs.rel: reorder other_constructor_decl_ref_exprs (@other_constructor_decl_ref_expr id, @constructor_decl_or_none constructor_decl) id constructor_decl
4747
other_constructor_decl_ref_exprs.rel: delete
4848

49-
rebind_self_in_initializer_exprs.rel: reorder rebind_self_in_constructor_exprs (int id, int sub_expr, int self) id sub_expr self
49+
rebind_self_in_initializer_exprs.rel: reorder rebind_self_in_constructor_exprs (@rebind_self_in_constructor_expr id, @expr_or_none sub_expr, @var_decl_or_none self) id sub_expr self
5050
rebind_self_in_constructor_exprs.rel: delete
5151

52-
explicit_closure_exprs.rel: reorder closure_exprs (int id) id
52+
explicit_closure_exprs.rel: reorder closure_exprs (@closure_expr id) id
5353
closure_exprs.rel: delete
5454

55-
initializer_ref_call_exprs.rel: reorder constructor_ref_call_exprs (int id) id
55+
initializer_ref_call_exprs.rel: reorder constructor_ref_call_exprs (@constructor_ref_call_expr id) id
5656
constructor_ref_call_exprs.rel: delete

0 commit comments

Comments
 (0)