Skip to content

Commit 9102cb5

Browse files
committed
Swift: make some ParentChild predicates private
1 parent beb0472 commit 9102cb5

File tree

2 files changed

+412
-290
lines changed

2 files changed

+412
-290
lines changed

swift/codegen/templates/ql_parent.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import codeql.swift.elements
44

55
private module Impl {
66
{{#classes}}
7-
Element getImmediateChildOf{{name}}({{name}} e, int index, string partialPredicateCall) {
7+
private Element getImmediateChildOf{{name}}({{name}} e, int index, string partialPredicateCall) {
88
{{! avoid unused argument warnings on root element, assuming the root element has no children }}
99
{{#root}}none(){{/root}}
1010
{{^root}}
1111
{{! b is the base offset 0, for ease of generation }}
1212
{{! b<base> is constructed to be strictly greater than the indexes required for children coming from <base> }}
13-
{{! n is the base offset for direct children, equal to the last base offsets from above }}
13+
{{! n is the base offset for direct children, equal to the last base offset from above }}
1414
{{! n<child> is constructed to be strictly greater than the indexes for <child> children }}
1515
exists(int b{{#bases}}, int b{{.}}{{/bases}}, int n{{#properties}}{{#is_child}}, int n{{singular}}{{/is_child}}{{/properties}} |
1616
b = 0

0 commit comments

Comments
 (0)